Struct vhdl_lang::InterfaceEnt

source ·
pub struct InterfaceEnt<'a> { /* private fields */ }

Implementations§

source§

impl<'a> InterfaceEnt<'a>

source

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

source

pub fn from_any(ent: EntRef<'a>) -> Option<Self>

source

pub fn has_default(&self) -> bool

source

pub fn interface_class(&self) -> InterfaceClass

source

pub fn is_signal(&self) -> bool

source

pub fn is_out_or_inout_signal(&self) -> bool

source

pub fn type_mark(&self) -> TypeEnt<'a>

source

pub fn base_type(&self) -> TypeEnt<'a>

source

pub fn base(&self) -> BaseType<'a>

Methods from Deref<Target = AnyEnt<'a>>§

source

pub fn id(&self) -> EntityId

source

pub fn declaration(&'a self) -> EntRef<'a>

source

pub fn is_implicit(&self) -> bool

source

pub fn is_subprogram(&self) -> bool

source

pub fn is_subprogram_decl(&self) -> bool

source

pub fn is_uninst_subprogram_decl(&self) -> bool

source

pub fn is_uninst_subprogram_body(&self) -> bool

source

pub fn is_uninst_subprogram(&self) -> bool

source

pub fn is_protected_type(&self) -> bool

source

pub fn is_protected_type_body(&self) -> bool

source

pub fn is_declared_by(&self, other: EntRef<'_>) -> bool

source

pub fn is_explicit(&self) -> bool

source

pub fn is_anonymous(&self) -> bool

A statement without a label

source

pub fn decl_pos(&self) -> Option<&SrcPos>

source

pub fn parent_in_same_source(&self) -> Option<EntRef<'a>>

source

pub fn library_name(&self) -> Option<&Symbol>

source

pub fn designator(&self) -> &Designator

source

pub fn path_name(&self) -> String

source

pub fn kind(&self) -> &AnyEntKind<'_>

source

pub fn error( &self, diagnostics: &mut dyn DiagnosticHandler, message: impl Into<String>, code: ErrorCode )

source

pub fn is_overloaded(&self) -> bool

source

pub fn signature(&self) -> Option<&Signature<'_>>

source

pub fn as_actual(&self) -> &AnyEnt<'_>

source

pub fn get_attribute(&self, name: &Symbol) -> Option<AttributeEnt<'a>>

source

pub fn actual_kind(&self) -> &AnyEntKind<'_>

Strip aliases and return reference to actual entity kind

source

pub fn is_alias_of(&self, other: &AnyEnt<'_>) -> bool

Returns true if self is alias of other

source

pub fn describe(&self) -> String

Trait Implementations§

source§

impl<'a> Clone for InterfaceEnt<'a>

source§

fn clone(&self) -> InterfaceEnt<'a>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'a> Debug for InterfaceEnt<'a>

source§

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

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

impl<'a> Deref for InterfaceEnt<'a>

§

type Target = AnyEnt<'a>

The resulting type after dereferencing.
source§

fn deref(&self) -> EntRef<'a>

Dereferences the value.
source§

impl<'a> PartialEq for InterfaceEnt<'a>

source§

fn eq(&self, other: &InterfaceEnt<'a>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'a> Copy for InterfaceEnt<'a>

source§

impl<'a> Eq for InterfaceEnt<'a>

source§

impl<'a> StructuralPartialEq for InterfaceEnt<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for InterfaceEnt<'a>

§

impl<'a> !RefUnwindSafe for InterfaceEnt<'a>

§

impl<'a> Send for InterfaceEnt<'a>

§

impl<'a> Sync for InterfaceEnt<'a>

§

impl<'a> Unpin for InterfaceEnt<'a>

§

impl<'a> !UnwindSafe for InterfaceEnt<'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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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>,

§

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.