pub struct Constant<'a> {
pub name: Loc<&'a str>,
pub type_annotation: Option<Loc<TypeAnnotation>>,
pub equals_token: Loc<()>,
pub const_token: Loc<()>,
pub value: Loc<ConstantValue>,
pub semi_token: Loc<()>,
}Fields§
§name: Loc<&'a str>§type_annotation: Option<Loc<TypeAnnotation>>§equals_token: Loc<()>§const_token: Loc<()>§value: Loc<ConstantValue>§semi_token: Loc<()>Auto Trait Implementations§
impl<'a> Freeze for Constant<'a>
impl<'a> RefUnwindSafe for Constant<'a>
impl<'a> Send for Constant<'a>
impl<'a> Sync for Constant<'a>
impl<'a> Unpin for Constant<'a>
impl<'a> UnwindSafe for Constant<'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