Type Alias WireExtendedAttributeName

Source
pub type WireExtendedAttributeName = WireVector<u8>;
Expand description

The wire type corresponding to ExtendedAttributeName.

Aliased Type§

struct WireExtendedAttributeName { /* private fields */ }

Implementations

§

impl<T> WireVector<T>

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

Encodes that a vector is present in a slot.

pub fn len(&self) -> usize

Returns the length of the vector in elements.

pub fn is_empty(&self) -> bool

Returns whether the vector is empty.

pub fn as_slice(&self) -> &[T]

Returns a slice of the elements of the vector.

pub unsafe fn decode_raw<D>( slot: Slot<'_, WireVector<T>>, decoder: &mut D, ) -> Result<(), DecodeError>
where D: Decoder + ?Sized, T: Decode<D>,

Decodes a wire vector which contains raw data.

§Safety

The elements of the wire vecot rmust not need to be individually decoded, and must always be valid.

Trait Implementations

§

impl<T> Debug for WireVector<T>
where T: Debug,

§

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

Formats the value using the given formatter. Read more
§

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

§

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

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

impl<T> Deref for WireVector<T>

§

type Target = [T]

The resulting type after dereferencing.
§

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

Dereferences the value.
§

impl<T> Drop for WireVector<T>

§

fn drop(&mut self)

Executes the destructor for this type. Read more
§

impl<T> ZeroPadding for WireVector<T>

§

fn zero_padding(out: &mut MaybeUninit<WireVector<T>>)

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