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
.
Unwraps this Required
Container
returning the underlying value.
If this Container
hasn’t been initialized properly, so contains no
value.
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
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<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