cl_typeck::entry

Struct Entry

Source
pub struct Entry<'t, 'a> { /* private fields */ }

Implementations§

Source§

impl<'t, 'a> Entry<'t, 'a>

Source

pub const fn new(table: &'t Table<'a>, id: Handle) -> Self

Source

pub const fn id(&self) -> Handle

Source

pub fn inner(&self) -> &Table<'a>

Source

pub const fn with_id(&self, id: Handle) -> Entry<'_, 'a>

Source

pub fn nav(&self, path: &[PathPart]) -> Option<Entry<'_, 'a>>

Source

pub const fn root(&self) -> Handle

Source

pub fn kind(&self) -> Option<&NodeKind>

Source

pub fn parent(&self) -> Option<Entry<'_, 'a>>

Source

pub fn children(&self) -> Option<&HashMap<Sym, Handle>>

Source

pub fn imports(&self) -> Option<&HashMap<Sym, Handle>>

Source

pub fn ty(&self) -> Option<&TypeKind>

Source

pub fn span(&self) -> Option<&Span>

Source

pub fn meta(&self) -> Option<&'a [Meta]>

Source

pub fn source(&self) -> Option<&Source<'a>>

Source

pub fn impl_target(&self) -> Option<Entry<'_, 'a>>

Source

pub fn selfty(&self) -> Option<Entry<'_, 'a>>

Source

pub fn name(&self) -> Option<Sym>

Trait Implementations§

Source§

impl<'t, 'a> Debug for Entry<'t, 'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Entry<'_, '_>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'t, 'a> Freeze for Entry<'t, 'a>

§

impl<'t, 'a> RefUnwindSafe for Entry<'t, 'a>

§

impl<'t, 'a> Send for Entry<'t, 'a>

§

impl<'t, 'a> Sync for Entry<'t, 'a>

§

impl<'t, 'a> Unpin for Entry<'t, 'a>

§

impl<'t, 'a> UnwindSafe for Entry<'t, 'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.