pub union Pointer<'de, T> {
/* private fields */
}Expand description
A raw FIDL pointer
Implementations§
Source§impl<'de, T> Pointer<'de, T>
impl<'de, T> Pointer<'de, T>
Sourcepub fn is_encoded_present(slot: Slot<'_, Self>) -> Result<bool, DecodeError>
pub fn is_encoded_present(slot: Slot<'_, Self>) -> Result<bool, DecodeError>
Returns whether the wire pointer was encoded present.
Sourcepub fn encode_present(out: &mut MaybeUninit<Self>)
pub fn encode_present(out: &mut MaybeUninit<Self>)
Encodes that a pointer is present in an output.
Sourcepub fn encode_absent(out: &mut MaybeUninit<Self>)
pub fn encode_absent(out: &mut MaybeUninit<Self>)
Encodes that a pointer is absent in a slot.
Sourcepub fn set_decoded(slot: Slot<'_, Self>, value: Slot<'de, T>)
pub fn set_decoded(slot: Slot<'_, Self>, value: Slot<'de, T>)
Sets the decoded value of the pointer.
Sourcepub fn set_decoded_slice(slot: Slot<'_, Self>, slice: Slot<'de, [T]>)
pub fn set_decoded_slice(slot: Slot<'_, Self>, slice: Slot<'de, [T]>)
Sets the decoded value of the pointer to the first element of a slice.
Trait Implementations§
Auto Trait Implementations§
impl<'de, T> Freeze for Pointer<'de, T>
impl<'de, T> RefUnwindSafe for Pointer<'de, T>where
T: RefUnwindSafe,
impl<'de, T> Unpin for Pointer<'de, T>
impl<'de, T> !UnwindSafe for Pointer<'de, T>
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