Enum sv_parser::TypeDeclaration
source · pub enum TypeDeclaration {
DataType(Box<TypeDeclarationDataType>),
Interface(Box<TypeDeclarationInterface>),
Reserved(Box<TypeDeclarationReserved>),
}
Variants§
DataType(Box<TypeDeclarationDataType>)
Interface(Box<TypeDeclarationInterface>)
Reserved(Box<TypeDeclarationReserved>)
Trait Implementations§
source§impl Clone for TypeDeclaration
impl Clone for TypeDeclaration
source§fn clone(&self) -> TypeDeclaration
fn clone(&self) -> TypeDeclaration
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TypeDeclaration
impl Debug for TypeDeclaration
source§impl<'a> From<&'a TypeDeclaration> for RefNode<'a>
impl<'a> From<&'a TypeDeclaration> for RefNode<'a>
source§fn from(x: &'a TypeDeclaration) -> RefNode<'a>
fn from(x: &'a TypeDeclaration) -> RefNode<'a>
Converts to this type from the input type.
source§impl<'a> From<&'a TypeDeclaration> for RefNodes<'a>
impl<'a> From<&'a TypeDeclaration> for RefNodes<'a>
source§fn from(x: &'a TypeDeclaration) -> RefNodes<'a>
fn from(x: &'a TypeDeclaration) -> RefNodes<'a>
Converts to this type from the input type.
source§impl From<TypeDeclaration> for AnyNode
impl From<TypeDeclaration> for AnyNode
source§fn from(x: TypeDeclaration) -> AnyNode
fn from(x: TypeDeclaration) -> AnyNode
Converts to this type from the input type.
source§impl<'a> IntoIterator for &'a TypeDeclaration
impl<'a> IntoIterator for &'a TypeDeclaration
source§impl PartialEq for TypeDeclaration
impl PartialEq for TypeDeclaration
source§fn eq(&self, other: &TypeDeclaration) -> bool
fn eq(&self, other: &TypeDeclaration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> TryFrom<&'a TypeDeclaration> for Locate
impl<'a> TryFrom<&'a TypeDeclaration> for Locate
source§impl TryFrom<AnyNode> for TypeDeclaration
impl TryFrom<AnyNode> for TypeDeclaration
source§impl TryFrom<TypeDeclaration> for Locate
impl TryFrom<TypeDeclaration> for Locate
impl StructuralPartialEq for TypeDeclaration
Auto Trait Implementations§
impl RefUnwindSafe for TypeDeclaration
impl Send for TypeDeclaration
impl Sync for TypeDeclaration
impl Unpin for TypeDeclaration
impl UnwindSafe for TypeDeclaration
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