Enum scylladb_parse::Assignment
source · [−]pub enum Assignment {
Simple {
selection: SimpleSelection,
term: Term,
},
Arithmetic {
assignee: Name,
lhs: Name,
op: ArithmeticOp,
rhs: Term,
},
Append {
assignee: Name,
list: ListLiteral,
item: Name,
},
}Variants
Simple
Arithmetic
Append
Implementations
sourceimpl Assignment
impl Assignment
pub fn simple(
selection: impl Into<SimpleSelection>,
term: impl Into<Term>
) -> Self
pub fn arithmetic(
assignee: impl Into<Name>,
lhs: impl Into<Name>,
op: ArithmeticOp,
rhs: impl Into<Term>
) -> Self
pub fn append(
assignee: impl Into<Name>,
list: Vec<impl Into<Term>>,
item: impl Into<Name>
) -> Self
Trait Implementations
sourceimpl Clone for Assignment
impl Clone for Assignment
sourcefn clone(&self) -> Assignment
fn clone(&self) -> Assignment
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<'a> CustomToTokens<'a> for Assignment
impl<'a> CustomToTokens<'a> for Assignment
fn to_tokens(&'a self, tokens: &mut TokenStream)
sourceimpl Debug for Assignment
impl Debug for Assignment
sourceimpl Display for Assignment
impl Display for Assignment
sourceimpl FromStr for Assignment
impl FromStr for Assignment
sourceimpl Parse for Assignment
impl Parse for Assignment
type Output = Assignment
fn parse(s: &mut StatementStream<'_>) -> Result<Self::Output>
sourceimpl PartialEq<Assignment> for Assignment
impl PartialEq<Assignment> for Assignment
sourcefn eq(&self, other: &Assignment) -> bool
fn eq(&self, other: &Assignment) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &Assignment) -> bool
fn ne(&self, other: &Assignment) -> bool
This method tests for !=.
sourceimpl ToTokens for Assignment
impl ToTokens for Assignment
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 Assignment
impl StructuralEq for Assignment
impl StructuralPartialEq for Assignment
Auto Trait Implementations
impl RefUnwindSafe for Assignment
impl Send for Assignment
impl Sync for Assignment
impl Unpin for Assignment
impl UnwindSafe for Assignment
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