pub struct Chosen<'b, 'a: 'b> { /* private fields */ }
Expand description
Represents the /chosen
node with specific helper methods
Implementations§
Source§impl<'b, 'a: 'b> Chosen<'b, 'a>
impl<'b, 'a: 'b> Chosen<'b, 'a>
Sourcepub fn stdout(self) -> Option<StdInOutPath<'b, 'a>>
pub fn stdout(self) -> Option<StdInOutPath<'b, 'a>>
Searches for the node representing stdout
, if the property exists,
attempting to resolve aliases if the node name doesn’t exist as-is
Sourcepub fn stdin(self) -> Option<StdInOutPath<'b, 'a>>
pub fn stdin(self) -> Option<StdInOutPath<'b, 'a>>
Searches for the node representing stdout
, if the property exists,
attempting to resolve aliases if the node name doesn’t exist as-is. If
no stdin
property exists, but stdout
is present, it will return the
node specified by the stdout
property.
Trait Implementations§
impl<'b, 'a: 'b> Copy for Chosen<'b, 'a>
Auto Trait Implementations§
impl<'b, 'a> Freeze for Chosen<'b, 'a>
impl<'b, 'a> RefUnwindSafe for Chosen<'b, 'a>
impl<'b, 'a> Send for Chosen<'b, 'a>
impl<'b, 'a> Sync for Chosen<'b, 'a>
impl<'b, 'a> Unpin for Chosen<'b, 'a>
impl<'b, 'a> UnwindSafe for Chosen<'b, 'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more