pub struct Source<TFormatter, TValue>where
TFormatter: for<'a> SourceFormatter<'a, TValue>,{ /* private fields */ }
Expand description
Format is a object wrapper of given input as a string value
This struct object already been refactored to accept any input source
that implement SourceFormatter
Final implementation of this object is removing all specific source type
implementations like as_toml
, or as_yaml
, and only provide a single method
which is Source::parse
that will parse given source type. This final approach
designed to make this object become modular, by separating between the object with
its specific type parser.
By using this approach, user will be able to create a custom source type parser based on their needs
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<TFormatter, TValue> Freeze for Source<TFormatter, TValue>where
TFormatter: Freeze,
impl<TFormatter, TValue> RefUnwindSafe for Source<TFormatter, TValue>where
TFormatter: RefUnwindSafe,
TValue: RefUnwindSafe,
impl<TFormatter, TValue> Send for Source<TFormatter, TValue>
impl<TFormatter, TValue> Sync for Source<TFormatter, TValue>
impl<TFormatter, TValue> Unpin for Source<TFormatter, TValue>
impl<TFormatter, TValue> UnwindSafe for Source<TFormatter, TValue>where
TFormatter: UnwindSafe,
TValue: UnwindSafe,
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