pub struct Member<'gcx> {
pub name: Symbol,
pub ty: Ty<'gcx>,
pub res: Option<Res>,
}Fields§
§name: Symbol§ty: Ty<'gcx>§res: Option<Res>Implementations§
Source§impl<'gcx> Member<'gcx>
impl<'gcx> Member<'gcx>
pub fn new(name: Symbol, ty: Ty<'gcx>) -> Member<'gcx>
pub fn with_res(name: Symbol, ty: Ty<'gcx>, res: impl Into<Res>) -> Member<'gcx>
pub fn with_builtin(builtin: Builtin, ty: Ty<'gcx>) -> Member<'gcx>
pub fn of_builtin(gcx: Gcx<'gcx>, builtin: Builtin) -> Member<'gcx>
pub fn of_builtins( gcx: Gcx<'gcx>, builtins: impl IntoIterator<Item = Builtin>, ) -> Vec<Member<'gcx>>
pub fn of_builtins_iter( gcx: Gcx<'gcx>, builtins: impl IntoIterator<Item = Builtin>, ) -> impl Iterator<Item = Member<'gcx>>
Trait Implementations§
impl<'gcx> Copy for Member<'gcx>
Auto Trait Implementations§
impl<'gcx> Freeze for Member<'gcx>
impl<'gcx> RefUnwindSafe for Member<'gcx>
impl<'gcx> Send for Member<'gcx>
impl<'gcx> Sync for Member<'gcx>
impl<'gcx> Unpin for Member<'gcx>
impl<'gcx> UnwindSafe for Member<'gcx>
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, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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