pub struct Const<'a> {
    pub name: Ident<'a>,
    pub ty: Option<Handle<Type<'a>>>,
    pub init: Handle<Expression<'a>>,
    pub doc_comments: Vec<&'a str>,
}Fields§
§name: Ident<'a>§ty: Option<Handle<Type<'a>>>§init: Handle<Expression<'a>>§doc_comments: Vec<&'a str>Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Const<'a>
impl<'a> RefUnwindSafe for Const<'a>
impl<'a> Send for Const<'a>
impl<'a> Sync for Const<'a>
impl<'a> Unpin for Const<'a>
impl<'a> UnwindSafe for Const<'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