Enum cyfs_lib::ExpTokenEvalValue
source · [−]pub enum ExpTokenEvalValue {
None,
String(String),
Glob(ExpGlobToken),
Bool(bool),
I8(i8),
I16(i16),
I32(i32),
I64(i64),
U8(u8),
U16(u16),
U32(u32),
U64(u64),
}
Variants
None
String(String)
Glob(ExpGlobToken)
Bool(bool)
I8(i8)
I16(i16)
I32(i32)
I64(i64)
U8(u8)
U16(u16)
U32(u32)
U64(u64)
Implementations
sourceimpl ExpTokenEvalValue
impl ExpTokenEvalValue
pub fn from_string<T>(v: &T) -> Self where
T: ToString,
pub fn from_opt_string<T>(v: &Option<T>) -> Self where
T: ToString,
pub fn from_glob_list<T>(v: &Vec<T>) -> Self where
T: ToString,
pub fn from_opt_glob<T>(v: &Option<T>) -> Self where
T: ToString,
pub fn is_none(&self) -> bool
pub fn try_from_single_const_token(token: &str) -> Option<Self>
pub fn new_from_const_token(
target: &ExpTokenEvalValue,
token: &str
) -> BuckyResult<Self>
pub fn support_ops(&self) -> Vec<ExpOp>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn is_support_op(&self, op: &ExpOp) -> bool
pub fn as_bool(&self) -> Option<bool>
Trait Implementations
sourceimpl Clone for ExpTokenEvalValue
impl Clone for ExpTokenEvalValue
sourcefn clone(&self) -> ExpTokenEvalValue
fn clone(&self) -> ExpTokenEvalValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ExpTokenEvalValue
impl Debug for ExpTokenEvalValue
sourceimpl Into<i16> for ExpTokenEvalValue
impl Into<i16> for ExpTokenEvalValue
sourceimpl Into<i32> for ExpTokenEvalValue
impl Into<i32> for ExpTokenEvalValue
sourceimpl Into<i64> for ExpTokenEvalValue
impl Into<i64> for ExpTokenEvalValue
sourceimpl Into<i8> for ExpTokenEvalValue
impl Into<i8> for ExpTokenEvalValue
sourceimpl Into<u16> for ExpTokenEvalValue
impl Into<u16> for ExpTokenEvalValue
sourceimpl Into<u32> for ExpTokenEvalValue
impl Into<u32> for ExpTokenEvalValue
sourceimpl Into<u64> for ExpTokenEvalValue
impl Into<u64> for ExpTokenEvalValue
sourceimpl Into<u8> for ExpTokenEvalValue
impl Into<u8> for ExpTokenEvalValue
sourceimpl Ord for ExpTokenEvalValue
impl Ord for ExpTokenEvalValue
sourceimpl PartialEq<ExpTokenEvalValue> for ExpTokenEvalValue
impl PartialEq<ExpTokenEvalValue> for ExpTokenEvalValue
sourcefn eq(&self, other: &ExpTokenEvalValue) -> bool
fn eq(&self, other: &ExpTokenEvalValue) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ExpTokenEvalValue) -> bool
fn ne(&self, other: &ExpTokenEvalValue) -> bool
This method tests for !=
.
sourceimpl PartialOrd<ExpTokenEvalValue> for ExpTokenEvalValue
impl PartialOrd<ExpTokenEvalValue> for ExpTokenEvalValue
sourcefn partial_cmp(&self, other: &ExpTokenEvalValue) -> Option<Ordering>
fn partial_cmp(&self, other: &ExpTokenEvalValue) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for ExpTokenEvalValue
impl StructuralEq for ExpTokenEvalValue
impl StructuralPartialEq for ExpTokenEvalValue
Auto Trait Implementations
impl RefUnwindSafe for ExpTokenEvalValue
impl Send for ExpTokenEvalValue
impl Sync for ExpTokenEvalValue
impl Unpin for ExpTokenEvalValue
impl UnwindSafe for ExpTokenEvalValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more