pub struct PeekOption<'mem> { /* private fields */ }Expand description
Lets you read from an option (implements read-only option operations)
Implementations§
Source§impl<'mem> PeekOption<'mem>
impl<'mem> PeekOption<'mem>
Sourcepub fn vtable(self) -> &'static OptionVTable
pub fn vtable(self) -> &'static OptionVTable
Returns the option vtable
Trait Implementations§
Source§impl<'mem> Clone for PeekOption<'mem>
impl<'mem> Clone for PeekOption<'mem>
Source§fn clone(&self) -> PeekOption<'mem>
fn clone(&self) -> PeekOption<'mem>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'mem> Copy for PeekOption<'mem>
Auto Trait Implementations§
impl<'mem> Freeze for PeekOption<'mem>
impl<'mem> RefUnwindSafe for PeekOption<'mem>
impl<'mem> Send for PeekOption<'mem>
impl<'mem> Sync for PeekOption<'mem>
impl<'mem> Unpin for PeekOption<'mem>
impl<'mem> UnwindSafe for PeekOption<'mem>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Stylize for T
impl<T> Stylize for T
Source§fn bright_red(self) -> Styled<T>
fn bright_red(self) -> Styled<T>
Apply bright red color style to a value.
Source§fn bright_green(self) -> Styled<T>
fn bright_green(self) -> Styled<T>
Apply bright green color style to a value.
Source§fn bright_blue(self) -> Styled<T>
fn bright_blue(self) -> Styled<T>
Apply bright blue color style to a value.
Source§fn bright_yellow(self) -> Styled<T>
fn bright_yellow(self) -> Styled<T>
Apply bright yellow color style to a value.
Source§fn bright_magenta(self) -> Styled<T>
fn bright_magenta(self) -> Styled<T>
Apply bright magenta color style to a value.
Source§fn bright_cyan(self) -> Styled<T>
fn bright_cyan(self) -> Styled<T>
Apply bright cyan color style to a value.
Source§fn bright_white(self) -> Styled<T>
fn bright_white(self) -> Styled<T>
Apply bright white color style to a value.