Enum typst_syntax::ast::LetBindingKind
source · pub enum LetBindingKind<'a> {
Normal(Pattern<'a>),
Closure(Ident<'a>),
}
Expand description
The kind of a let binding, either a normal one or a closure.
Variants§
Normal(Pattern<'a>)
A normal binding: let x = 1
.
Closure(Ident<'a>)
A closure binding: let f(x) = 1
.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for LetBindingKind<'a>
impl<'a> RefUnwindSafe for LetBindingKind<'a>
impl<'a> Send for LetBindingKind<'a>
impl<'a> Sync for LetBindingKind<'a>
impl<'a> Unpin for LetBindingKind<'a>
impl<'a> UnwindSafe for LetBindingKind<'a>
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