pub struct Required<T>(_);
Expand description
Container
requiring a field to have a value mandatory.
It’s similar to Option
but panics directly on accessing to the
underlying value, if it’s not present.
Accessing the original value is intended to be done via Deref
and
DerefMut
.
Replaces the underlying value
with the given one in this Required
Container
, returning the previous one, if any.
Performs copy-assignment from source
. Read more
Indicates whether this Container
is empty (contains no values).
Indicates whether the provided value
is present in this Container
.
Replaces the value
contained in this Container
with the provided
one, and returns the replaced one, if any. Read more
fn set(&mut self, value: V)
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
The resulting type after dereferencing.
Mutably dereferences the value.
The type of the elements being iterated over.
Which kind of iterator are we turning this into?
The type of the elements being iterated over.
Which kind of iterator are we turning this into?
The type of the elements being iterated over.
Which kind of iterator are we turning this into?
impl<V, K: ?Sized, D: ?Sized> TryApplySelf<V, K, D> for Required<V> where
V: Spanned,
K: Kind + Single,
D: Dedup,
Self: TryApply<V, K, D>,
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
Checks whether the specified validation Rule
is satisfied. Read more