pub struct UnitHead {
pub unsafe_token: Option<Loc<()>>,
pub extern_token: Option<Loc<()>>,
pub attributes: AttributeList,
pub unit_kind: Loc<UnitKind>,
pub name: Loc<Identifier>,
pub inputs: Loc<ParameterList>,
pub output_type: Option<(Loc<()>, Loc<TypeSpec>)>,
pub type_params: Option<Loc<Vec<Loc<TypeParam>>>>,
pub where_clauses: Vec<WhereClause>,
}Fields§
§unsafe_token: Option<Loc<()>>§extern_token: Option<Loc<()>>§attributes: AttributeList§unit_kind: Loc<UnitKind>§name: Loc<Identifier>§inputs: Loc<ParameterList>§output_type: Option<(Loc<()>, Loc<TypeSpec>)>§type_params: Option<Loc<Vec<Loc<TypeParam>>>>§where_clauses: Vec<WhereClause>Trait Implementations§
impl StructuralPartialEq for UnitHead
Auto Trait Implementations§
impl Freeze for UnitHead
impl RefUnwindSafe for UnitHead
impl Send for UnitHead
impl Sync for UnitHead
impl Unpin for UnitHead
impl UnwindSafe for UnitHead
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more