pub struct Newtype<'tree> {
pub span: Span,
pub constructor: Option<NewtypeConstructor<'tree>>,
pub constructors: Option<GadtConstructors<'tree>>,
pub context: Option<Context<'tree>>,
pub deriving: Vec<Deriving<'tree>>,
pub forall: Option<NewtypeForall<'tree>>,
pub kind: Option<QuantifiedType<'tree>>,
pub name: Option<NewtypeName<'tree>>,
pub patterns: Option<NewtypePatterns<'tree>>,
pub children: Option<NewtypeChildren<'tree>>,
}Fields§
§span: Span§constructor: Option<NewtypeConstructor<'tree>>§constructors: Option<GadtConstructors<'tree>>§context: Option<Context<'tree>>§deriving: Vec<Deriving<'tree>>§forall: Option<NewtypeForall<'tree>>§kind: Option<QuantifiedType<'tree>>§name: Option<NewtypeName<'tree>>§patterns: Option<NewtypePatterns<'tree>>§children: Option<NewtypeChildren<'tree>>Trait Implementations§
impl<'tree> Eq for Newtype<'tree>
impl<'tree> StructuralPartialEq for Newtype<'tree>
Auto Trait Implementations§
impl<'tree> Freeze for Newtype<'tree>
impl<'tree> RefUnwindSafe for Newtype<'tree>
impl<'tree> Send for Newtype<'tree>
impl<'tree> Sync for Newtype<'tree>
impl<'tree> Unpin for Newtype<'tree>
impl<'tree> UnsafeUnpin for Newtype<'tree>
impl<'tree> UnwindSafe for Newtype<'tree>
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