pub enum TryConstructOutcome {
Accept(DynamicValue),
Discard,
UseDefault(DynamicValue),
Trim(DynamicValue),
}Expand description
Result of a try-construct evaluation.
Variants§
Accept(DynamicValue)
The value is within bounds — set may write it unchanged.
Discard
The value is discarded — the member stays unset.
UseDefault(DynamicValue)
The value is replaced by the default_value.
Trim(DynamicValue)
The value is truncated to the bound.
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