pub struct WireOptionalString<'de> { /* private fields */ }
Expand description
An optional FIDL string
Implementations§
Source§impl WireOptionalString<'_>
impl WireOptionalString<'_>
Sourcepub fn encode_present(out: &mut MaybeUninit<Self>, len: u64)
pub fn encode_present(out: &mut MaybeUninit<Self>, len: u64)
Encodes that a string is present in a slot.
Sourcepub fn encode_absent(out: &mut MaybeUninit<Self>)
pub fn encode_absent(out: &mut MaybeUninit<Self>)
Encodes that a string is absent in a slot.
Sourcepub fn as_ref(&self) -> Option<&WireString<'_>>
pub fn as_ref(&self) -> Option<&WireString<'_>>
Returns a reference to the underlying string, if any.
Trait Implementations§
Source§impl Debug for WireOptionalString<'_>
impl Debug for WireOptionalString<'_>
Source§impl FromWireOption<WireOptionalString<'_>> for String
impl FromWireOption<WireOptionalString<'_>> for String
Source§fn from_wire_option(wire: WireOptionalString<'_>) -> Option<Self>
fn from_wire_option(wire: WireOptionalString<'_>) -> Option<Self>
Converts the given
wire
to an option of this type.Source§impl FromWireOptionRef<WireOptionalString<'_>> for String
impl FromWireOptionRef<WireOptionalString<'_>> for String
Source§fn from_wire_option_ref(wire: &WireOptionalString<'_>) -> Option<Self>
fn from_wire_option_ref(wire: &WireOptionalString<'_>) -> Option<Self>
Converts the given
wire
reference to an option of this type.Source§impl Wire for WireOptionalString<'static>
impl Wire for WireOptionalString<'static>
Source§type Decoded<'de> = WireOptionalString<'de>
type Decoded<'de> = WireOptionalString<'de>
The decoded wire type, restricted to the
'de
lifetime.Source§fn zero_padding(out: &mut MaybeUninit<Self>)
fn zero_padding(out: &mut MaybeUninit<Self>)
Writes zeroes to the padding for this type, if any.
Auto Trait Implementations§
impl<'de> Freeze for WireOptionalString<'de>
impl<'de> RefUnwindSafe for WireOptionalString<'de>
impl<'de> Send for WireOptionalString<'de>
impl<'de> Sync for WireOptionalString<'de>
impl<'de> Unpin for WireOptionalString<'de>
impl<'de> !UnwindSafe for WireOptionalString<'de>
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