[][src]Struct langtag::VariantsMut

pub struct VariantsMut<'a> { /* fields omitted */ }

Mutable reference to the variants of a language tag.

Implementations

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

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

Checks if the list of variants is empty.

pub fn first(&self) -> Option<&Variant>[src]

Returns the first variant subtag of the list (if any).

pub fn last(&self) -> Option<&Variant>[src]

Returns the last variant subtag of the list (if any).

pub fn push(&mut self, variant: &Variant)[src]

Add a new variant subtag at the end.

pub fn pop(&mut self) -> Option<Variant<Vec<u8>>>[src]

Removes and return the last variant subtag of the list (if any).

Auto Trait Implementations

impl<'a> RefUnwindSafe for VariantsMut<'a>[src]

impl<'a> Send for VariantsMut<'a>[src]

impl<'a> Sync for VariantsMut<'a>[src]

impl<'a> Unpin for VariantsMut<'a>[src]

impl<'a> !UnwindSafe for VariantsMut<'a>[src]

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.