Union WirePointer
#[repr(C, align(8))]
pub union WirePointer<T> {
/* private fields */
}
Expand description
A raw FIDL pointer
Implementations§
§impl<T> WirePointer<T>
impl<T> WirePointer<T>
pub fn is_encoded_present(
slot: Slot<'_, WirePointer<T>>,
) -> Result<bool, DecodeError>
pub fn is_encoded_present( slot: Slot<'_, WirePointer<T>>, ) -> Result<bool, DecodeError>
Returns whether the wire pointer was encoded present.
pub fn encode_present(out: &mut MaybeUninit<WirePointer<T>>)
pub fn encode_present(out: &mut MaybeUninit<WirePointer<T>>)
Encodes that a pointer is present in an output.
pub fn encode_absent(out: &mut MaybeUninit<WirePointer<T>>)
pub fn encode_absent(out: &mut MaybeUninit<WirePointer<T>>)
Encodes that a pointer is absent in a slot.
pub fn set_decoded(slot: Slot<'_, WirePointer<T>>, ptr: *mut T)
pub fn set_decoded(slot: Slot<'_, WirePointer<T>>, ptr: *mut T)
Sets the decoded value of the pointer.
Auto Trait Implementations§
impl<T> Freeze for WirePointer<T>
impl<T> RefUnwindSafe for WirePointer<T>where
T: RefUnwindSafe,
impl<T> !Send for WirePointer<T>
impl<T> !Sync for WirePointer<T>
impl<T> Unpin for WirePointer<T>
impl<T> UnwindSafe for WirePointer<T>where
T: RefUnwindSafe,
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