diff --git a/doc/crate_metadata/constant.BSS_SECTION_NAME.html b/doc/crate_metadata/constant.BSS_SECTION_NAME.html index b421a41a64..1712c1fc76 100644 --- a/doc/crate_metadata/constant.BSS_SECTION_NAME.html +++ b/doc/crate_metadata/constant.BSS_SECTION_NAME.html @@ -1 +1 @@ -BSS_SECTION_NAME in crate_metadata - Rust
pub const BSS_SECTION_NAME: &'static str;
\ No newline at end of file +BSS_SECTION_NAME in crate_metadata - Rust
pub const BSS_SECTION_NAME: &'static str;
\ No newline at end of file diff --git a/doc/crate_metadata/constant.DATA_SECTION_NAME.html b/doc/crate_metadata/constant.DATA_SECTION_NAME.html index 7b27584b0f..34cc40f24c 100644 --- a/doc/crate_metadata/constant.DATA_SECTION_NAME.html +++ b/doc/crate_metadata/constant.DATA_SECTION_NAME.html @@ -1 +1 @@ -DATA_SECTION_NAME in crate_metadata - Rust
pub const DATA_SECTION_NAME: &'static str;
\ No newline at end of file +DATA_SECTION_NAME in crate_metadata - Rust
pub const DATA_SECTION_NAME: &'static str;
\ No newline at end of file diff --git a/doc/crate_metadata/constant.EH_FRAME_SECTION_NAME.html b/doc/crate_metadata/constant.EH_FRAME_SECTION_NAME.html index f99eb53bb5..865068acdb 100644 --- a/doc/crate_metadata/constant.EH_FRAME_SECTION_NAME.html +++ b/doc/crate_metadata/constant.EH_FRAME_SECTION_NAME.html @@ -1 +1 @@ -EH_FRAME_SECTION_NAME in crate_metadata - Rust
pub const EH_FRAME_SECTION_NAME: &'static str;
\ No newline at end of file +EH_FRAME_SECTION_NAME in crate_metadata - Rust
pub const EH_FRAME_SECTION_NAME: &'static str;
\ No newline at end of file diff --git a/doc/crate_metadata/constant.GCC_EXCEPT_TABLE_SECTION_NAME.html b/doc/crate_metadata/constant.GCC_EXCEPT_TABLE_SECTION_NAME.html index c7dacfe09d..87e58d747a 100644 --- a/doc/crate_metadata/constant.GCC_EXCEPT_TABLE_SECTION_NAME.html +++ b/doc/crate_metadata/constant.GCC_EXCEPT_TABLE_SECTION_NAME.html @@ -1 +1 @@ -GCC_EXCEPT_TABLE_SECTION_NAME in crate_metadata - Rust
pub const GCC_EXCEPT_TABLE_SECTION_NAME: &'static str;
\ No newline at end of file +GCC_EXCEPT_TABLE_SECTION_NAME in crate_metadata - Rust
pub const GCC_EXCEPT_TABLE_SECTION_NAME: &'static str;
\ No newline at end of file diff --git a/doc/crate_metadata/constant.RODATA_SECTION_NAME.html b/doc/crate_metadata/constant.RODATA_SECTION_NAME.html index 94c3354ed9..b7e9837444 100644 --- a/doc/crate_metadata/constant.RODATA_SECTION_NAME.html +++ b/doc/crate_metadata/constant.RODATA_SECTION_NAME.html @@ -1 +1 @@ -RODATA_SECTION_NAME in crate_metadata - Rust
pub const RODATA_SECTION_NAME: &'static str;
\ No newline at end of file +RODATA_SECTION_NAME in crate_metadata - Rust
pub const RODATA_SECTION_NAME: &'static str;
\ No newline at end of file diff --git a/doc/crate_metadata/constant.TEXT_SECTION_NAME.html b/doc/crate_metadata/constant.TEXT_SECTION_NAME.html index 683a65d95d..5fc2741758 100644 --- a/doc/crate_metadata/constant.TEXT_SECTION_NAME.html +++ b/doc/crate_metadata/constant.TEXT_SECTION_NAME.html @@ -1 +1 @@ -TEXT_SECTION_NAME in crate_metadata - Rust
pub const TEXT_SECTION_NAME: &'static str;
\ No newline at end of file +TEXT_SECTION_NAME in crate_metadata - Rust
pub const TEXT_SECTION_NAME: &'static str;
\ No newline at end of file diff --git a/doc/crate_metadata/constant.TLS_BSS_SECTION_NAME.html b/doc/crate_metadata/constant.TLS_BSS_SECTION_NAME.html index 557b17f0f5..2b346c6a00 100644 --- a/doc/crate_metadata/constant.TLS_BSS_SECTION_NAME.html +++ b/doc/crate_metadata/constant.TLS_BSS_SECTION_NAME.html @@ -1 +1 @@ -TLS_BSS_SECTION_NAME in crate_metadata - Rust
pub const TLS_BSS_SECTION_NAME: &'static str;
\ No newline at end of file +TLS_BSS_SECTION_NAME in crate_metadata - Rust
pub const TLS_BSS_SECTION_NAME: &'static str;
\ No newline at end of file diff --git a/doc/crate_metadata/constant.TLS_DATA_SECTION_NAME.html b/doc/crate_metadata/constant.TLS_DATA_SECTION_NAME.html index 4c6d1a2a33..1a7eea9f1f 100644 --- a/doc/crate_metadata/constant.TLS_DATA_SECTION_NAME.html +++ b/doc/crate_metadata/constant.TLS_DATA_SECTION_NAME.html @@ -1 +1 @@ -TLS_DATA_SECTION_NAME in crate_metadata - Rust
pub const TLS_DATA_SECTION_NAME: &'static str;
\ No newline at end of file +TLS_DATA_SECTION_NAME in crate_metadata - Rust
pub const TLS_DATA_SECTION_NAME: &'static str;
\ No newline at end of file diff --git a/doc/crate_metadata/enum.SectionType.html b/doc/crate_metadata/enum.SectionType.html index dc7bcf65fa..35ee6562cd 100644 --- a/doc/crate_metadata/enum.SectionType.html +++ b/doc/crate_metadata/enum.SectionType.html @@ -1,4 +1,4 @@ -SectionType in crate_metadata - Rust
pub enum SectionType {
+SectionType in crate_metadata - Rust
pub enum SectionType {
     Text,
     Rodata,
     Data,
@@ -30,19 +30,19 @@
 that should be called when traversing up the stack for cleanup. 

Blog post from author of gold linker: https://www.airs.com/blog/archives/460 Some documentation here: https://gcc.gnu.org/wiki/Dwarf2EHNewbiesHowto

-

Implementations§

source§

impl SectionType

source

pub const fn name(&self) -> &'static str

Returns the const &str name of this SectionType.

-
source

pub fn is_data_or_bss(&self) -> bool

Returns true if Data or Bss, otherwise false.

-
source

pub fn is_tls(&self) -> bool

Returns true if TlsData or TlsBss, otherwise false.

-

Trait Implementations§

source§

impl Clone for SectionType

source§

fn clone(&self) -> SectionType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SectionType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for SectionType

Implementations§

§

impl SectionType

pub const fn name(&self) -> &'static str

Returns the const &str name of this SectionType.

+

pub fn is_data_or_bss(&self) -> bool

Returns true if Data or Bss, otherwise false.

+

pub fn is_tls(&self) -> bool

Returns true if TlsData or TlsBss, otherwise false.

+

Trait Implementations§

§

impl Clone for SectionType

§

fn clone(&self) -> SectionType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for SectionType

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for SectionType

§

fn deserialize<__D>( __deserializer: __D ) -> Result<SectionType, <__D as Deserializer<'de>>::Error>where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq<SectionType> for SectionType

source§

fn eq(&self, other: &SectionType) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq<SectionType> for SectionType

§

fn eq(&self, other: &SectionType) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Serialize for SectionType

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for SectionType

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for SectionType

source§

impl StructuralPartialEq for SectionType

Auto Trait Implementations§

§

impl RefUnwindSafe for SectionType

§

impl Send for SectionType

§

impl Sync for SectionType

§

impl Unpin for SectionType

§

impl UnwindSafe for SectionType

Blanket Implementations§

source§

impl<T> Any for Twhere + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Copy for SectionType

§

impl StructuralPartialEq for SectionType

Auto Trait Implementations§

§

impl RefUnwindSafe for SectionType

§

impl Send for SectionType

§

impl Sync for SectionType

§

impl Unpin for SectionType

§

impl UnwindSafe for SectionType

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/doc/crate_metadata/type.Shndx.html b/doc/crate_metadata/type.Shndx.html index 3781a112ea..02657da92b 100644 --- a/doc/crate_metadata/type.Shndx.html +++ b/doc/crate_metadata/type.Shndx.html @@ -1,4 +1,4 @@ -Shndx in crate_metadata - Rust

Type Alias crate_metadata::Shndx

source ·
pub type Shndx = usize;
Expand description

A Section Header iNDeX (SHNDX), as specified by the ELF format. +Shndx in crate_metadata - Rust

Type Alias crate_metadata::Shndx

pub type Shndx = usize;
Expand description

A Section Header iNDeX (SHNDX), as specified by the ELF format. Even though this is typically encoded as a u16, its decoded form can exceed the max size of u16.

\ No newline at end of file diff --git a/doc/environment/enum.Error.html b/doc/environment/enum.Error.html index 8e1c2393c0..ed7ec9a731 100644 --- a/doc/environment/enum.Error.html +++ b/doc/environment/enum.Error.html @@ -1,10 +1,10 @@ -Error in environment - Rust

Enum environment::Error

source ·
pub enum Error {
+Error in environment - Rust

Enum environment::Error

source ·
pub enum Error {
     NotADirectory,
     NotFound,
 }
Expand description

The error type for environment operations.

Variants§

§

NotADirectory

A filesystem node was, unexpectedly, not a directory.

§

NotFound

A filesystem node wasn’t found.

-

Trait Implementations§

source§

impl Display for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl UnwindSafe for Error

Blanket Implementations§

source§

impl<T> Any for Twhere +

Trait Implementations§

source§

impl Display for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl UnwindSafe for Error

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/doc/environment/index.html b/doc/environment/index.html index 78216efae3..10152b9804 100644 --- a/doc/environment/index.html +++ b/doc/environment/index.html @@ -1,3 +1,3 @@ environment - Rust

Crate environment

source ·

Structs

Crate environment

source ·

Structs

  • A structure that contains environment state for a given Task or group of Tasks.

Enums

  • The error type for environment operations.

Type Aliases

\ No newline at end of file diff --git a/doc/environment/struct.Environment.html b/doc/environment/struct.Environment.html index 3de38b89ae..7f704aebb0 100644 --- a/doc/environment/struct.Environment.html +++ b/doc/environment/struct.Environment.html @@ -9,12 +9,12 @@

Fields§

§working_dir: DirRef

The “current working directory”, i.e., where a task’s relative path begins upon first execution.

-
§variables: HashMap<String, String>

Implementations§

source§

impl Environment

source

pub fn cwd(&self) -> String

Returns the absolute file path of the current working directory.

-
source

pub fn chdir(&mut self, path: &Path) -> Result<()>

Changes the current working directory.

-
source

pub fn get(&self, key: &str) -> Option<&String>

Returns the value of the environment variable with the given key.

-
source

pub fn set(&mut self, key: String, value: String)

Sets an environment variable with the given key and value.

-
source

pub fn unset(&mut self, key: &str)

Unsets the environment variable with the given key.

-

Trait Implementations§

source§

impl Default for Environment

source§

fn default() -> Environment

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +

§variables: HashMap<String, String>

Implementations§

source§

impl Environment

source

pub fn cwd(&self) -> String

Returns the absolute file path of the current working directory.

+
source

pub fn chdir(&mut self, path: &Path) -> Result<()>

Changes the current working directory.

+
source

pub fn get(&self, key: &str) -> Option<&String>

Returns the value of the environment variable with the given key.

+
source

pub fn set(&mut self, key: String, value: String)

Sets an environment variable with the given key and value.

+
source

pub fn unset(&mut self, key: &str)

Unsets the environment variable with the given key.

+

Trait Implementations§

source§

impl Default for Environment

source§

fn default() -> Environment

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/doc/environment/type.Result.html b/doc/environment/type.Result.html index 0915596c3a..c958e1f1c4 100644 --- a/doc/environment/type.Result.html +++ b/doc/environment/type.Result.html @@ -1,4 +1,4 @@ -Result in environment - Rust

Type Alias environment::Result

source ·
pub type Result<T> = Result<T, Error>;
Expand description

A specialized Result type for environment operations.

+Result in environment - Rust

Type Alias environment::Result

source ·
pub type Result<T> = Result<T, Error>;
Expand description

A specialized Result type for environment operations.

Aliased Type§

enum Result<T> {
     Ok(T),
     Err(Error),
diff --git a/doc/src/environment/lib.rs.html b/doc/src/environment/lib.rs.html
index fae2065310..adcde73922 100644
--- a/doc/src/environment/lib.rs.html
+++ b/doc/src/environment/lib.rs.html
@@ -90,9 +90,6 @@
 90
 91
 92
-93
-94
-95
 
#![no_std]
 
 extern crate alloc;
@@ -126,17 +123,14 @@
     /// Changes the current working directory.
     #[doc(alias("change"))]
     pub fn chdir(&mut self, path: &Path) -> Result<()> {
-        for component in path.components() {
-            let new = self.working_dir.lock().get(component.as_ref());
-            match new {
-                Some(FileOrDir::Dir(dir)) => {
-                    self.working_dir = dir;
-                }
-                Some(FileOrDir::File(_)) => return Err(Error::NotADirectory),
-                None => return Err(Error::NotFound),
+        match path.get(&self.working_dir) {
+            Some(FileOrDir::Dir(dir)) => {
+                self.working_dir = dir;
+                Ok(())
             }
+            Some(FileOrDir::File(_)) => Err(Error::NotADirectory),
+            None => Err(Error::NotFound),
         }
-        Ok(())
     }
 
     /// Returns the value of the environment variable with the given `key`.
diff --git a/doc/stdio/struct.KeyEventQueueReader.html b/doc/stdio/struct.KeyEventQueueReader.html
index 358a177fae..4abc76dd32 100644
--- a/doc/stdio/struct.KeyEventQueueReader.html
+++ b/doc/stdio/struct.KeyEventQueueReader.html
@@ -1,5 +1,5 @@
 KeyEventQueueReader in stdio - Rust
pub struct KeyEventQueueReader { /* private fields */ }
Expand description

A reader to keyevent ring buffer.

-

Implementations§

source§

impl KeyEventQueueReader

source

pub fn read_one(&self) -> Option<KeyEvent>

Try to read a keyevent from the ring buffer. It returns None if currently +

Implementations§

source§

impl KeyEventQueueReader

source

pub fn read_one(&self) -> Option<KeyEvent>

Try to read a keyevent from the ring buffer. It returns None if currently the ring buffer is empty.

Trait Implementations§

source§

impl Clone for KeyEventQueueReader

source§

fn clone(&self) -> KeyEventQueueReader

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere diff --git a/doc/stdio/struct.KeyEventQueueWriter.html b/doc/stdio/struct.KeyEventQueueWriter.html index 535db9cf36..b642149cad 100644 --- a/doc/stdio/struct.KeyEventQueueWriter.html +++ b/doc/stdio/struct.KeyEventQueueWriter.html @@ -1,5 +1,5 @@ KeyEventQueueWriter in stdio - Rust
pub struct KeyEventQueueWriter { /* private fields */ }
Expand description

A writer to keyevent ring buffer.

-

Implementations§

source§

impl KeyEventQueueWriter

source

pub fn write_one(&self, key_event: KeyEvent)

Push a keyevent into the ring buffer.

+

Implementations§

source§

impl KeyEventQueueWriter

source

pub fn write_one(&self, key_event: KeyEvent)

Push a keyevent into the ring buffer.

Trait Implementations§

source§

impl Clone for KeyEventQueueWriter

source§

fn clone(&self) -> KeyEventQueueWriter

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere