Enum sv_parser::CastingType
source · pub enum CastingType {
SimpleType(Box<SimpleType>),
ConstantPrimary(Box<ConstantPrimary>),
Signing(Box<Signing>),
String(Box<Keyword>),
Const(Box<Keyword>),
}
Variants§
SimpleType(Box<SimpleType>)
ConstantPrimary(Box<ConstantPrimary>)
Signing(Box<Signing>)
String(Box<Keyword>)
Const(Box<Keyword>)
Trait Implementations§
source§impl Clone for CastingType
impl Clone for CastingType
source§fn clone(&self) -> CastingType
fn clone(&self) -> CastingType
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 CastingType
impl Debug for CastingType
source§impl<'a> From<&'a CastingType> for RefNode<'a>
impl<'a> From<&'a CastingType> for RefNode<'a>
source§fn from(x: &'a CastingType) -> RefNode<'a>
fn from(x: &'a CastingType) -> RefNode<'a>
Converts to this type from the input type.
source§impl<'a> From<&'a CastingType> for RefNodes<'a>
impl<'a> From<&'a CastingType> for RefNodes<'a>
source§fn from(x: &'a CastingType) -> RefNodes<'a>
fn from(x: &'a CastingType) -> RefNodes<'a>
Converts to this type from the input type.
source§impl From<CastingType> for AnyNode
impl From<CastingType> for AnyNode
source§fn from(x: CastingType) -> AnyNode
fn from(x: CastingType) -> AnyNode
Converts to this type from the input type.
source§impl<'a> IntoIterator for &'a CastingType
impl<'a> IntoIterator for &'a CastingType
source§impl PartialEq for CastingType
impl PartialEq for CastingType
source§fn eq(&self, other: &CastingType) -> bool
fn eq(&self, other: &CastingType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> TryFrom<&'a CastingType> for Locate
impl<'a> TryFrom<&'a CastingType> for Locate
source§impl TryFrom<AnyNode> for CastingType
impl TryFrom<AnyNode> for CastingType
source§impl TryFrom<CastingType> for Locate
impl TryFrom<CastingType> for Locate
impl StructuralPartialEq for CastingType
Auto Trait Implementations§
impl RefUnwindSafe for CastingType
impl Send for CastingType
impl Sync for CastingType
impl Unpin for CastingType
impl UnwindSafe for CastingType
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