Skip to main content

UnorderedContainer

Struct UnorderedContainer 

Source
pub struct UnorderedContainer(pub Container);

Tuple Fields§

§0: Container

Methods from Deref<Target = Container>§

Source

pub fn hash_width(&self) -> Option<HashWidth>

Returns the width of the Kind::Hash items. Returns None if the items are not Hash values or if the container is empty.

Source

pub fn item_kind(&self) -> Kind

The kind every item in this container has.

Source

pub fn items(&self) -> &[PropertyValueEnum]

The items, in order.

Source

pub fn get(&self, index: usize) -> Option<&PropertyValueEnum>

The item at index, if there is one.

Source

pub fn len(&self) -> usize

How many items this container holds.

Source

pub fn is_empty(&self) -> bool

Whether this container holds no items.

Trait Implementations§

Source§

impl AsRef<Container> for UnorderedContainer

Source§

fn as_ref(&self) -> &Container

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Clone for UnorderedContainer

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for UnorderedContainer

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for UnorderedContainer

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Deref for UnorderedContainer

Source§

type Target = Container

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<S: Into<Container>> From<S> for UnorderedContainer

Source§

fn from(value: S) -> Self

Converts to this type from the input type.
Source§

impl From<UnorderedContainer> for PropertyValueEnum

Source§

fn from(other: UnorderedContainer) -> Self

Converts to this type from the input type.
Source§

impl FromValue for UnorderedContainer

Source§

fn from_value(value: &PropertyValueEnum) -> Option<&Self>

The value as Self, if that is its kind.
Source§

fn from_value_mut(value: &mut PropertyValueEnum) -> Option<&mut Self>

Source§

impl PartialEq for UnorderedContainer

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PropertyExt for UnorderedContainer

Source§

fn size_no_header(&self) -> usize

Source§

fn size(&self, include_header: bool) -> usize

Get the size of the property value, including the kind header if specified
Source§

impl PropertyValueExt for UnorderedContainer

Source§

const KIND: Kind = Kind::UnorderedContainer

Source§

impl ReadProperty for UnorderedContainer

Source§

fn from_reader<R: Read + Seek + ?Sized>( reader: &mut R, legacy: bool, ) -> Result<Self, Error>

Source§

impl StructuralPartialEq for UnorderedContainer

Source§

impl WriteProperty for UnorderedContainer

Source§

fn to_writer<R: Write + Seek + ?Sized>( &self, writer: &mut R, legacy: bool, ) -> Result<(), Error>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PropertyValueDyn for T

Source§

fn kind(&self) -> Kind

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.