[][src]Struct swim_structure::item::Record

#[repr(C)]
pub struct Record<'a> { /* fields omitted */ }

Value variant representing a collection of Items.

Methods

impl<'a> Record<'a>[src]

pub fn try_hold_slice<'b>(
    hold: &dyn Hold<'a>,
    data: &[Item<'b>]
) -> Result<Record<'a>, HoldError>
[src]

pub fn hold_slice<'b>(hold: &dyn Hold<'a>, data: &[Item<'b>]) -> Record<'a>[src]

pub fn from_slice<'b>(data: &[Item<'b>]) -> Record<'a>[src]

pub fn is_empty(&self) -> bool[src]

pub fn len(&self) -> usize[src]

pub fn cap(&self) -> usize[src]

pub fn as_value(&self) -> &Value<'a>[src]

Upcasts this Record reference to a Value reference.

pub fn as_mut_value(&mut self) -> &mut Value<'a>[src]

Upcasts this Record reference to a mutable Value reference.

pub fn into_value(self) -> Value<'a>[src]

Upcasts this Record to a Value.

pub fn into_item(self) -> Item<'a>[src]

Upcasts this Record to an Item.

pub fn as_slice(&self) -> &[Item<'a>][src]

pub fn as_mut_slice(&mut self) -> &mut [Item<'a>][src]

pub fn try_reserve(&mut self, ext: usize) -> Result<(), HoldError>[src]

pub fn reserve(&mut self, ext: usize)[src]

pub fn try_reserve_exact(&mut self, ext: usize) -> Result<(), HoldError>[src]

pub fn reserve_exact(&mut self, ext: usize)[src]

pub fn try_reserve_in_place(&mut self, ext: usize) -> Result<(), HoldError>[src]

pub fn try_reserve_in_place_exact(
    &mut self,
    ext: usize
) -> Result<(), HoldError>
[src]

pub fn try_push(&mut self, item: Item<'a>) -> Result<(), HoldError>[src]

pub fn push(&mut self, item: Item<'a>)[src]

pub fn try_insert(
    &mut self,
    index: usize,
    item: Item<'a>
) -> Result<(), HoldError>
[src]

pub fn insert(&mut self, index: usize, item: Item<'a>)[src]

pub fn pop(&mut self) -> Option<Item<'a>>[src]

pub fn remove(&mut self, index: usize) -> Item<'a>[src]

pub fn truncate(&mut self, new_len: usize)[src]

pub fn clear(&mut self)[src]

Trait Implementations

impl<'a> PartialEq<Record<'a>> for Record<'a>[src]

impl<'a> Eq for Record<'a>[src]

impl<'a> Ord for Record<'a>[src]

default fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

default fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

default fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl<'a> PartialOrd<Record<'a>> for Record<'a>[src]

impl<'a> Deref for Record<'a>[src]

type Target = [Item<'a>]

The resulting type after dereferencing.

impl<'a> From<Record<'a>> for Item<'a>[src]

impl<'a> From<Record<'a>> for Value<'a>[src]

impl<'a> Debug for Record<'a>[src]

impl<'a> DerefMut for Record<'a>[src]

impl<'a> Drop for Record<'a>[src]

impl<'a, Idx: SliceIndex<[Item<'a>]> + 'a> Index<Idx> for Record<'a>[src]

type Output = Idx::Output

The returned type after indexing.

impl<'a, Idx: SliceIndex<[Item<'a>]> + 'a> IndexMut<Idx> for Record<'a>[src]

impl<'a> Hash for Record<'a>[src]

default fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<'a> Clone for Record<'a>[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> AsMut<Value<'a>> for Record<'a>[src]

impl<'a> AsMut<[Item<'a>]> for Record<'a>[src]

impl<'a> AsRef<Value<'a>> for Record<'a>[src]

impl<'a> AsRef<[Item<'a>]> for Record<'a>[src]

impl<'a> Holder<'a> for Record<'a>[src]

impl<'a, 'b> Stow<'b, Record<'b>> for Record<'a>[src]

impl<'a> TryClone for Record<'a>[src]

impl<'a, 'b> CloneIntoHold<'a, Record<'a>> for Record<'b>[src]

default fn clone_into_hold(&self, hold: &dyn Hold<'a>) -> T[src]

Returns a clone of self allocated in hold. Read more

Auto Trait Implementations

impl<'a> !Send for Record<'a>

impl<'a> !Sync for Record<'a>

Blanket Implementations

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<'b, S, T> StowFrom for T where
    S: Stow<'b, T>, 
[src]

default fn stow_from(value: T, hold: &dyn Hold<'b>) -> Self[src]

impl<'b, S, T> StowInto for S where
    T: StowFrom<'b, S>, 
[src]

default fn stow_into(self, hold: &dyn Hold<'b>) -> T[src]