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§
Implementations§
Source§impl 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§
Source§impl Clone for Assignment
impl Clone for Assignment
Source§fn clone(&self) -> Assignment
fn clone(&self) -> Assignment
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> CustomToTokens<'a> for Assignment
impl<'a> CustomToTokens<'a> for Assignment
Source§impl Debug for Assignment
impl Debug for Assignment
Source§impl Display for Assignment
impl Display for Assignment
Source§impl FromStr for Assignment
impl FromStr for Assignment
Source§impl Parse for Assignment
impl Parse for Assignment
type Output = Assignment
fn parse(s: &mut StatementStream<'_>) -> Result<Self::Output>
Source§impl PartialEq for Assignment
impl PartialEq for Assignment
Source§impl ToTokens for Assignment
impl ToTokens for Assignment
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
impl Eq for Assignment
impl StructuralPartialEq for Assignment
Auto Trait Implementations§
impl Freeze for Assignment
impl RefUnwindSafe for Assignment
impl Send for Assignment
impl Sync for Assignment
impl Unpin for Assignment
impl UnwindSafe for Assignment
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