Type Alias WireChildName

Source
pub type WireChildName = WireString;
Expand description

The wire type corresponding to ChildName.

Aliased Type§

struct WireChildName { /* private fields */ }

Implementations

§

impl WireString

pub fn encode_present(out: &mut MaybeUninit<WireString>, len: u64)

Encodes that a string is present in a slot.

pub fn len(&self) -> usize

Returns the length of the string in bytes.

pub fn is_empty(&self) -> bool

Returns whether the string is empty.

pub fn as_str(&self) -> &str

Returns a reference to the underlying str.

Trait Implementations

§

impl Debug for WireString

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<D> Decode<D> for WireString
where D: Decoder + ?Sized,

§

fn decode( slot: Slot<'_, WireString>, decoder: &mut D, ) -> Result<(), DecodeError>

Decodes a value into a slot using a decoder. Read more
§

impl Deref for WireString

§

type Target = str

The resulting type after dereferencing.
§

fn deref(&self) -> &<WireString as Deref>::Target

Dereferences the value.
§

impl ZeroPadding for WireString

§

fn zero_padding(out: &mut MaybeUninit<WireString>)

Writes zeroes to the padding for this type, if any.