pub enum CheckValue<T: Default> {
Star,
Equal(T),
}
Variants§
Implementations§
Source§impl<T> CheckValue<T>
impl<T> CheckValue<T>
Source§impl<T> CheckValue<T>
impl<T> CheckValue<T>
pub fn into_raw_explicit(self) -> CheckBytesValueRaw
Source§impl CheckValue<Vec<CheckValue<BytesValue>>>
impl CheckValue<Vec<CheckValue<BytesValue>>>
pub fn pretty_str(&self) -> String
Trait Implementations§
Source§impl<V, T> Checkable<V> for CheckValue<T>
impl<V, T> Checkable<V> for CheckValue<T>
Source§impl<T: Clone + Default> Clone for CheckValue<T>
impl<T: Clone + Default> Clone for CheckValue<T>
Source§fn clone(&self) -> CheckValue<T>
fn clone(&self) -> CheckValue<T>
Returns a copy 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 CheckValue<T>
impl<T: Default> Default for CheckValue<T>
Source§fn default() -> CheckValue<T>
fn default() -> CheckValue<T>
Returns the “default value” for a type. Read more
Source§impl<T> InterpretableFrom<CheckBytesValueRaw> for CheckValue<T>
impl<T> InterpretableFrom<CheckBytesValueRaw> for CheckValue<T>
fn interpret_from( from: CheckBytesValueRaw, context: &InterpreterContext, ) -> Self
Source§impl<T> IntoRaw<CheckBytesValueRaw> for CheckValue<T>
impl<T> IntoRaw<CheckBytesValueRaw> for CheckValue<T>
fn into_raw(self) -> CheckBytesValueRaw
Auto Trait Implementations§
impl<T> Freeze for CheckValue<T>where
T: Freeze,
impl<T> RefUnwindSafe for CheckValue<T>where
T: RefUnwindSafe,
impl<T> Send for CheckValue<T>where
T: Send,
impl<T> Sync for CheckValue<T>where
T: Sync,
impl<T> Unpin for CheckValue<T>where
T: Unpin,
impl<T> UnwindSafe for CheckValue<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> InterpretableFrom<&T> for Twhere
T: Clone,
impl<T> InterpretableFrom<&T> for Twhere
T: Clone,
fn interpret_from(from: &T, _context: &InterpreterContext) -> T
Source§impl<T> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more