pub struct Annotated {
pub doc: Doc,
pub name: Ident,
pub type_: Type,
pub value: Option<Expr>,
}Expand description
name: Type or name: Type = value.
Fields§
§doc: DocComment lines written above it.
name: IdentThe name bound.
type_: TypeThe annotation.
value: Option<Expr>The value, absent for a declaration with no initialiser.
Trait Implementations§
impl Eq for Annotated
impl StructuralPartialEq for Annotated
Auto Trait Implementations§
impl Freeze for Annotated
impl RefUnwindSafe for Annotated
impl Send for Annotated
impl Sync for Annotated
impl Unpin for Annotated
impl UnsafeUnpin for Annotated
impl UnwindSafe for Annotated
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