pub enum Deductible<T: Default> {
Inferred(T),
Explicit(T),
}Variants§
Trait Implementations§
Source§impl<T: Clone + Default> Clone for Deductible<T>
impl<T: Clone + Default> Clone for Deductible<T>
Source§fn clone(&self) -> Deductible<T>
fn clone(&self) -> Deductible<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Default> Default for Deductible<T>
impl<T: Default> Default for Deductible<T>
Source§impl From<Deductible<Message>> for Message
impl From<Deductible<Message>> for Message
Source§fn from(d: Deductible<Message>) -> Self
fn from(d: Deductible<Message>) -> Self
Converts to this type from the input type.
Source§impl From<Deductible<Text>> for Text
impl From<Deductible<Text>> for Text
Source§fn from(d: Deductible<Text>) -> Self
fn from(d: Deductible<Text>) -> Self
Converts to this type from the input type.
impl<T: Default> StructuralPartialEq for Deductible<T>
Auto Trait Implementations§
impl<T> Freeze for Deductible<T>where
T: Freeze,
impl<T> RefUnwindSafe for Deductible<T>where
T: RefUnwindSafe,
impl<T> Send for Deductible<T>where
T: Send,
impl<T> Sync for Deductible<T>where
T: Sync,
impl<T> Unpin for Deductible<T>where
T: Unpin,
impl<T> UnwindSafe for Deductible<T>where
T: UnwindSafe,
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