Enum scylladb_parse::Constant
source · [−]pub enum Constant {
Null,
String(LitStr),
Integer(String),
Float(String),
Boolean(bool),
Uuid(Uuid),
Hex(Vec<u8>),
Blob(Vec<u8>),
}Variants
Null
String(LitStr)
Integer(String)
Float(String)
Boolean(bool)
Uuid(Uuid)
Hex(Vec<u8>)
Blob(Vec<u8>)
Implementations
Trait Implementations
sourceimpl<'a> CustomToTokens<'a> for Constant
impl<'a> CustomToTokens<'a> for Constant
fn to_tokens(&'a self, tokens: &mut TokenStream)
sourceimpl From<Constant> for StatementOptValue
impl From<Constant> for StatementOptValue
sourcefn from(original: Constant) -> StatementOptValue
fn from(original: Constant) -> StatementOptValue
Converts to this type from the input type.
sourceimpl Ord for Constant
impl Ord for Constant
sourceimpl PartialOrd<Constant> for Constant
impl PartialOrd<Constant> for Constant
sourcefn partial_cmp(&self, other: &Constant) -> Option<Ordering>
fn partial_cmp(&self, other: &Constant) -> 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
sourceimpl ToTokens for Constant
impl ToTokens for Constant
sourcefn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Write self to the given TokenStream. Read more
sourcefn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Convert self directly into a TokenStream object. Read more
sourcefn into_token_stream(self) -> TokenStream
fn into_token_stream(self) -> TokenStream
Convert self directly into a TokenStream object. Read more
impl Eq for Constant
impl StructuralEq for Constant
impl StructuralPartialEq for Constant
Auto Trait Implementations
impl RefUnwindSafe for Constant
impl Send for Constant
impl Sync for Constant
impl Unpin for Constant
impl UnwindSafe for Constant
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