Constant crate_metadata::BSS_SECTION_NAME
source · pub const BSS_SECTION_NAME: &'static str;
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 @@ -
pub const BSS_SECTION_NAME: &'static str;
pub const BSS_SECTION_NAME: &'static str;
pub const DATA_SECTION_NAME: &'static str;
pub const DATA_SECTION_NAME: &'static str;
pub const EH_FRAME_SECTION_NAME: &'static str;
pub const EH_FRAME_SECTION_NAME: &'static str;
pub const GCC_EXCEPT_TABLE_SECTION_NAME: &'static str;
pub const GCC_EXCEPT_TABLE_SECTION_NAME: &'static str;
pub const RODATA_SECTION_NAME: &'static str;
pub const RODATA_SECTION_NAME: &'static str;
pub const TEXT_SECTION_NAME: &'static str;
pub const TEXT_SECTION_NAME: &'static str;
pub const TLS_BSS_SECTION_NAME: &'static str;
pub const TLS_BSS_SECTION_NAME: &'static str;
pub const TLS_DATA_SECTION_NAME: &'static str;
pub const TLS_DATA_SECTION_NAME: &'static str;
pub enum SectionType {
+SectionType in crate_metadata - Rust Enum crate_metadata::SectionType
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
-
source
. Read moresource
. Read moreself
and other
values to be equal, and is used
+ __D: Deserializer<'de>,self
and other
values to be equal, and is used
by ==
.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 @@ -pub type Shndx = usize;
A Section Header iNDeX (SHNDX), as specified by the ELF format. +
pub type Shndx = usize;
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
.
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§
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§
Trait Implementations§
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> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§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
Task
s.
Enums
- The error type for environment operations.
Type Aliases
- A specialized
Result
type for environment operations.
\ 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§
Trait Implementations§
source§impl Default for Environment
source§fn default() -> Environment
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for Environment
§impl Send for Environment
§impl Sync for Environment
§impl Unpin for Environment
§impl !UnwindSafe for Environment
Blanket Implementations§
§variables: HashMap<String, String>
Implementations§
Trait Implementations§
source§impl Default for Environment
source§fn default() -> Environment
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for Environment
§impl Send for Environment
§impl Sync for Environment
§impl Unpin for Environment
§impl !UnwindSafe for Environment
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§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 Struct stdio::KeyEventQueueReader
source · pub struct KeyEventQueueReader { /* private fields */ }
Expand description
A reader to keyevent ring buffer.
-Implementations§
source§impl KeyEventQueueReader
sourcepub fn read_one(&self) -> Option<KeyEvent>
Try to read a keyevent from the ring buffer. It returns None
if currently
+
Implementations§
Trait Implementations§
source§impl Clone for KeyEventQueueReader
source§fn clone(&self) -> KeyEventQueueReader
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for KeyEventQueueReader
§impl Send for KeyEventQueueReader
§impl Sync for KeyEventQueueReader
§impl Unpin for KeyEventQueueReader
§impl !UnwindSafe for KeyEventQueueReader
Blanket Implementations§
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 Struct stdio::KeyEventQueueWriter
source · pub struct KeyEventQueueWriter { /* private fields */ }
Expand description
A writer to keyevent ring buffer.
-Implementations§
source§impl KeyEventQueueWriter
Implementations§
Trait Implementations§
source§impl Clone for KeyEventQueueWriter
source§fn clone(&self) -> KeyEventQueueWriter
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for KeyEventQueueWriter
§impl Send for KeyEventQueueWriter
§impl Sync for KeyEventQueueWriter
§impl Unpin for KeyEventQueueWriter
§impl !UnwindSafe for KeyEventQueueWriter
Blanket Implementations§