Parsed

Struct Parsed 

Source
pub struct Parsed<'s, Storage: IKeFormatStorage<'s>> { /* private fields */ }

Implementations§

Source§

impl<'s, Storage: IKeFormatStorage<'s>> Parsed<'s, Storage>

Source

pub fn get(&self, id: &str) -> ZResult<&'s str>

Access the id element.

The returned string is guaranteed to either be an empty string or a valid key expression.

§Errors

If id is not part of self’s specs.

Source

pub fn values(&self) -> &[Option<&'s keyexpr>]

The raw values for each spec, in left-to-right order.

Source

pub fn iter(&'s self) -> Iter<'s, Storage>

Iterates over id-value pairs.

Trait Implementations§

Source§

impl<'s, Storage: IKeFormatStorage<'s>> IntoIterator for &'s Parsed<'s, Storage>

Source§

type Item = <<&'s Parsed<'s, Storage> as IntoIterator>::IntoIter as Iterator>::Item

The type of the elements being iterated over.
Source§

type IntoIter = Iter<'s, Storage>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more

Auto Trait Implementations§

§

impl<'s, Storage> Freeze for Parsed<'s, Storage>
where <Storage as IKeFormatStorage<'s>>::ValuesStorage<Option<&'s keyexpr>>: Freeze,

§

impl<'s, Storage> RefUnwindSafe for Parsed<'s, Storage>
where <Storage as IKeFormatStorage<'s>>::ValuesStorage<Option<&'s keyexpr>>: RefUnwindSafe, Storage: RefUnwindSafe,

§

impl<'s, Storage> Send for Parsed<'s, Storage>
where <Storage as IKeFormatStorage<'s>>::ValuesStorage<Option<&'s keyexpr>>: Send, Storage: Sync,

§

impl<'s, Storage> Sync for Parsed<'s, Storage>
where <Storage as IKeFormatStorage<'s>>::ValuesStorage<Option<&'s keyexpr>>: Sync, Storage: Sync,

§

impl<'s, Storage> Unpin for Parsed<'s, Storage>
where <Storage as IKeFormatStorage<'s>>::ValuesStorage<Option<&'s keyexpr>>: Unpin,

§

impl<'s, Storage> UnwindSafe for Parsed<'s, Storage>
where <Storage as IKeFormatStorage<'s>>::ValuesStorage<Option<&'s keyexpr>>: UnwindSafe, Storage: RefUnwindSafe,

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> AsNode<T> for T

Source§

fn as_node(&self) -> &T

Source§

impl<T> AsNodeMut<T> for T

Source§

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

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> 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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.