pub enum TryConstructOutcome {
Accept(DynamicValue),
Discard,
UseDefault(DynamicValue),
Trim(DynamicValue),
}Expand description
Ergebnis einer TryConstruct-Auswertung.
Variants§
Accept(DynamicValue)
Wert ist innerhalb der Bounds — set darf ihn unveraendert
schreiben.
Discard
Wert wird verworfen — Member bleibt unset.
UseDefault(DynamicValue)
Wert wird durch den default_value ersetzt.
Trim(DynamicValue)
Wert wird auf den Bound trunciert.
Trait Implementations§
Source§impl Clone for TryConstructOutcome
impl Clone for TryConstructOutcome
Source§fn clone(&self) -> TryConstructOutcome
fn clone(&self) -> TryConstructOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TryConstructOutcome
impl Debug for TryConstructOutcome
Source§impl PartialEq for TryConstructOutcome
impl PartialEq for TryConstructOutcome
Source§fn eq(&self, other: &TryConstructOutcome) -> bool
fn eq(&self, other: &TryConstructOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TryConstructOutcome
Auto Trait Implementations§
impl Freeze for TryConstructOutcome
impl RefUnwindSafe for TryConstructOutcome
impl Send for TryConstructOutcome
impl Sync for TryConstructOutcome
impl Unpin for TryConstructOutcome
impl UnsafeUnpin for TryConstructOutcome
impl UnwindSafe for TryConstructOutcome
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