Enum typst_syntax::ast::Assoc
source · pub enum Assoc {
Left,
Right,
}
Expand description
The associativity of a binary operator.
Variants§
Left
Left-associative: a + b + c
is equivalent to (a + b) + c
.
Right
Right-associative: a = b = c
is equivalent to a = (b = c)
.
Trait Implementations§
source§impl PartialEq for Assoc
impl PartialEq for Assoc
impl Copy for Assoc
impl Eq for Assoc
impl StructuralPartialEq for Assoc
Auto Trait Implementations§
impl Freeze for Assoc
impl RefUnwindSafe for Assoc
impl Send for Assoc
impl Sync for Assoc
impl Unpin for Assoc
impl UnwindSafe for Assoc
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