Enum scylladb_parse::Tag
source · [−]pub enum Tag<T> {
Tag(String),
Value(T),
}Variants
Tag(String)
Value(T)
Trait Implementations
sourceimpl<'a, T: 'a> CustomToTokens<'a> for Tag<T> where
TokenWrapper<'a, T>: ToTokens,
impl<'a, T: 'a> CustomToTokens<'a> for Tag<T> where
TokenWrapper<'a, T>: ToTokens,
fn to_tokens(&'a self, tokens: &mut TokenStream)
sourceimpl From<Tag<Constant>> for TaggedStatementOptValue
impl From<Tag<Constant>> for TaggedStatementOptValue
sourcefn from(original: Tag<Constant>) -> TaggedStatementOptValue
fn from(original: Tag<Constant>) -> TaggedStatementOptValue
Converts to this type from the input type.
sourceimpl From<Tag<Name>> for TaggedStatementOptValue
impl From<Tag<Name>> for TaggedStatementOptValue
sourcefn from(original: Tag<Name>) -> TaggedStatementOptValue
fn from(original: Tag<Name>) -> TaggedStatementOptValue
Converts to this type from the input type.
sourceimpl From<Tag<TaggedMapLiteral>> for TaggedStatementOptValue
impl From<Tag<TaggedMapLiteral>> for TaggedStatementOptValue
sourcefn from(original: Tag<TaggedMapLiteral>) -> TaggedStatementOptValue
fn from(original: Tag<TaggedMapLiteral>) -> TaggedStatementOptValue
Converts to this type from the input type.
sourceimpl<T: Ord> Ord for Tag<T>
impl<T: Ord> Ord for Tag<T>
sourceimpl<T: PartialOrd> PartialOrd<Tag<T>> for Tag<T>
impl<T: PartialOrd> PartialOrd<Tag<T>> for Tag<T>
sourcefn partial_cmp(&self, other: &Tag<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &Tag<T>) -> 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<T> ToTokens for Tag<T> where
for<'a> TokenWrapper<'a, T>: ToTokens,
impl<T> ToTokens for Tag<T> where
for<'a> TokenWrapper<'a, T>: ToTokens,
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<T: Eq> Eq for Tag<T>
impl<T> StructuralEq for Tag<T>
impl<T> StructuralPartialEq for Tag<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Tag<T> where
T: RefUnwindSafe,
impl<T> Send for Tag<T> where
T: Send,
impl<T> Sync for Tag<T> where
T: Sync,
impl<T> Unpin for Tag<T> where
T: Unpin,
impl<T> UnwindSafe for Tag<T> where
T: UnwindSafe,
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