pub struct Parsed<'s, Storage: IKeFormatStorage<'s>> { /* private fields */ }
Implementations§
Source§impl<'s, Storage: IKeFormatStorage<'s>> Parsed<'s, Storage>
impl<'s, Storage: IKeFormatStorage<'s>> Parsed<'s, Storage>
Sourcepub fn get(&self, id: &str) -> ZResult<&'s str>
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.
Trait Implementations§
Source§impl<'s, Storage: IKeFormatStorage<'s>> IntoIterator for &'s Parsed<'s, Storage>
impl<'s, Storage: IKeFormatStorage<'s>> IntoIterator for &'s Parsed<'s, Storage>
Auto Trait Implementations§
impl<'s, Storage> Freeze for Parsed<'s, Storage>
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>
impl<'s, Storage> Sync for Parsed<'s, Storage>
impl<'s, Storage> Unpin for Parsed<'s, Storage>
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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