pub struct WitNodePointer<'a> { /* private fields */ }Trait Implementations§
Source§impl<'a, 'b> WitValueExtractor<'a, 'b> for WitNodePointer<'b>
impl<'a, 'b> WitValueExtractor<'a, 'b> for WitNodePointer<'b>
fn u8(&'a self) -> Option<u8>
fn u16(&'a self) -> Option<u16>
fn u32(&'a self) -> Option<u32>
fn u64(&'a self) -> Option<u64>
fn s8(&'a self) -> Option<i8>
fn s16(&'a self) -> Option<i16>
fn s32(&'a self) -> Option<i32>
fn s64(&'a self) -> Option<i64>
fn f32(&'a self) -> Option<f32>
fn f64(&'a self) -> Option<f64>
fn char(&'a self) -> Option<char>
fn bool(&'a self) -> Option<bool>
fn string(&'a self) -> Option<&'b str>
fn field(&'a self, field_idx: usize) -> Option<WitNodePointer<'b>>
fn variant(&'a self) -> Option<(u32, Option<WitNodePointer<'b>>)>
fn enum_value(&'a self) -> Option<u32>
fn flags(&'a self) -> Option<&'b [bool]>
fn tuple_element(&'a self, element_idx: usize) -> Option<WitNodePointer<'b>>
fn list_elements<R>( &'a self, f: impl Fn(WitNodePointer<'b>) -> R, ) -> Option<Vec<R>>
fn option(&'a self) -> Option<Option<WitNodePointer<'b>>>
fn result( &'a self, ) -> Option<Result<Option<WitNodePointer<'b>>, Option<WitNodePointer<'b>>>>
fn handle(&'a self) -> Option<(Uri, u64)>
Auto Trait Implementations§
impl<'a> Freeze for WitNodePointer<'a>
impl<'a> RefUnwindSafe for WitNodePointer<'a>
impl<'a> Send for WitNodePointer<'a>
impl<'a> Sync for WitNodePointer<'a>
impl<'a> Unpin for WitNodePointer<'a>
impl<'a> UnwindSafe for WitNodePointer<'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
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self file descriptor. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more