pub struct UnitHead {
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§
§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§
Source§impl WithLocation for UnitHead
impl WithLocation for UnitHead
fn at(self, file_id: usize, span: &impl HasCodespan) -> Loc<Self>where
Self: Sized,
fn between( self, file_id: usize, start: &impl HasCodespan, end: &impl HasCodespan, ) -> Loc<Self>
fn between_locs<T, Y>(self, start: &Loc<T>, end: &Loc<Y>) -> Loc<Self>
fn nowhere(self) -> Loc<Self>where
Self: Sized,
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