Struct synthez_core::field::Required [−][src]
pub struct Required<T>(_);
Expand description
Container
requiring a field to have a value mandatory.
It’s similar to an Option
, but panics on accessing to an absent
underlying value. So, is not intended to be created directly in user code,
but rather only used for marking types in struct fields, so this library
machinery may kick in and take care of correct values creation without
introducing any panics.
Accessing the underlying value, stored in this wrapper, is intended to be
done via Deref
and DerefMut
in user code.
Implementations
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Required<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Required<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Merges the provided value
to this field::Container
with the
specified parsing Kind
and Dedup
lication strategy. Read more
Merges the value extracted from another
field::Container
to
this field::Container
with the specified parsing Kind
and
Dedup
lication strategy. Read more