pub struct AstConstDecl {
pub name: String,
pub type_name: String,
pub value: AstLiteralValue,
pub annotations: Vec<AstAnnotation>,
pub exported: bool,
pub span: Option<Span>,
}Fields§
§name: String§type_name: String§value: AstLiteralValue§annotations: Vec<AstAnnotation>§exported: bool§span: Option<Span>Trait Implementations§
Source§impl Clone for AstConstDecl
impl Clone for AstConstDecl
Source§fn clone(&self) -> AstConstDecl
fn clone(&self) -> AstConstDecl
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 AstConstDecl
impl Debug for AstConstDecl
Source§impl PartialEq for AstConstDecl
impl PartialEq for AstConstDecl
impl StructuralPartialEq for AstConstDecl
Auto Trait Implementations§
impl Freeze for AstConstDecl
impl RefUnwindSafe for AstConstDecl
impl Send for AstConstDecl
impl Sync for AstConstDecl
impl Unpin for AstConstDecl
impl UnsafeUnpin for AstConstDecl
impl UnwindSafe for AstConstDecl
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