pub struct LetBinding<'a>(/* private fields */);
Implementations§
Source§impl<'a> LetBinding<'a>
impl<'a> LetBinding<'a>
pub fn has_initial_value(self) -> bool
pub fn initial_value(self) -> Option<Expr<'a>>
pub fn pattern(self) -> Pattern<'a>
pub fn is_mut(self) -> bool
pub fn eq_span(self) -> Span
pub fn mut_span(self) -> Option<Span>
pub fn initial_value_span(self) -> Option<Span>
pub fn is_public(self) -> bool
pub fn pub_span(self) -> Option<Span>
Trait Implementations§
Source§impl<'a> AstNode<'a> for LetBinding<'a>
impl<'a> AstNode<'a> for LetBinding<'a>
Source§impl<'a> Clone for LetBinding<'a>
impl<'a> Clone for LetBinding<'a>
Source§fn clone(&self) -> LetBinding<'a>
fn clone(&self) -> LetBinding<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for LetBinding<'a>
impl<'a> Debug for LetBinding<'a>
Source§impl Default for LetBinding<'_>
impl Default for LetBinding<'_>
Source§impl<'a> Hash for LetBinding<'a>
impl<'a> Hash for LetBinding<'a>
Source§impl<'a> PartialEq for LetBinding<'a>
impl<'a> PartialEq for LetBinding<'a>
impl<'a> Copy for LetBinding<'a>
impl<'a> Eq for LetBinding<'a>
impl<'a> StructuralPartialEq for LetBinding<'a>
Auto Trait Implementations§
impl<'a> Freeze for LetBinding<'a>
impl<'a> RefUnwindSafe for LetBinding<'a>
impl<'a> Send for LetBinding<'a>
impl<'a> Sync for LetBinding<'a>
impl<'a> Unpin for LetBinding<'a>
impl<'a> UnwindSafe for LetBinding<'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