pub struct LetBinding {
pub name: Option<Ident>,
pub type_ann: Option<TypeAnnotation>,
pub value: Expr,
pub span: Span,
}Expand description
let name: Type = expr or let _ = expr
Fields§
§name: Option<Ident>None for let _ = expr (discard binding)
type_ann: Option<TypeAnnotation>§value: Expr§span: SpanTrait Implementations§
Source§impl Clone for LetBinding
impl Clone for LetBinding
Source§fn clone(&self) -> LetBinding
fn clone(&self) -> LetBinding
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 Debug for LetBinding
impl Debug for LetBinding
Source§impl<'de> Deserialize<'de> for LetBinding
impl<'de> Deserialize<'de> for LetBinding
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LetBinding
impl PartialEq for LetBinding
Source§impl Serialize for LetBinding
impl Serialize for LetBinding
impl StructuralPartialEq for LetBinding
Auto Trait Implementations§
impl Freeze for LetBinding
impl RefUnwindSafe for LetBinding
impl Send for LetBinding
impl Sync for LetBinding
impl Unpin for LetBinding
impl UnwindSafe for LetBinding
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