pub struct KeFormatter<'s, Storage: IKeFormatStorage<'s>> { /* private fields */ }Expand description
An active formatter for a KeFormat.
Implementations§
Source§impl<'s, Storage: IKeFormatStorage<'s>> KeFormatter<'s, Storage>
impl<'s, Storage: IKeFormatStorage<'s>> KeFormatter<'s, Storage>
Sourcepub fn clear(&mut self) -> &mut Self
pub fn clear(&mut self) -> &mut Self
Clear the formatter of previously set values, without deallocating its internal formatting buffer.
Sourcepub fn build(&self) -> ZResult<OwnedKeyExpr>
pub fn build(&self) -> ZResult<OwnedKeyExpr>
Build a key-expression according to the format and the currently set values.
This doesn’t clear the formatter of already set values, allowing to reuse the builder and only change a subset of its properties before building a new key-expression again.
Trait Implementations§
Source§impl<'s, Storage: Clone + IKeFormatStorage<'s>> Clone for KeFormatter<'s, Storage>
impl<'s, Storage: Clone + IKeFormatStorage<'s>> Clone for KeFormatter<'s, Storage>
Source§fn clone(&self) -> KeFormatter<'s, Storage>
fn clone(&self) -> KeFormatter<'s, Storage>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'s, Storage: IKeFormatStorage<'s>> Debug for KeFormatter<'s, Storage>
impl<'s, Storage: IKeFormatStorage<'s>> Debug for KeFormatter<'s, Storage>
Source§impl<'s, Storage: IKeFormatStorage<'s>> TryFrom<&KeFormatter<'s, Storage>> for OwnedKeyExpr
impl<'s, Storage: IKeFormatStorage<'s>> TryFrom<&KeFormatter<'s, Storage>> for OwnedKeyExpr
Source§impl<'s, Storage: IKeFormatStorage<'s>> TryFrom<&mut KeFormatter<'s, Storage>> for OwnedKeyExpr
impl<'s, Storage: IKeFormatStorage<'s>> TryFrom<&mut KeFormatter<'s, Storage>> for OwnedKeyExpr
Auto Trait Implementations§
impl<'s, Storage> Freeze for KeFormatter<'s, Storage>
impl<'s, Storage> RefUnwindSafe for KeFormatter<'s, Storage>where
<Storage as IKeFormatStorage<'s>>::ValuesStorage<Option<(u32, NonMaxU32)>>: RefUnwindSafe,
Storage: RefUnwindSafe,
impl<'s, Storage> Send for KeFormatter<'s, Storage>where
<Storage as IKeFormatStorage<'s>>::ValuesStorage<Option<(u32, NonMaxU32)>>: Send,
Storage: Sync,
impl<'s, Storage> Sync for KeFormatter<'s, Storage>where
<Storage as IKeFormatStorage<'s>>::ValuesStorage<Option<(u32, NonMaxU32)>>: Sync,
Storage: Sync,
impl<'s, Storage> Unpin for KeFormatter<'s, Storage>
impl<'s, Storage> UnwindSafe for KeFormatter<'s, Storage>where
<Storage as IKeFormatStorage<'s>>::ValuesStorage<Option<(u32, NonMaxU32)>>: 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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