[][src]Enum moore_svlog_syntax::ast::VarKind

pub enum VarKind {
    Var,
    Net {
        ty: NetType,
        kind: NetKind,
    },
}

Whether a declaration is a variable or a net.

Variants

Var

A variable declaration.

Net

A net declaration.

Fields of Net

ty: NetType

The net type, such as wire or trireg.

kind: NetKind

Additional vectored or scalared specifier.

Implementations

impl VarKind[src]

pub fn is_var(&self) -> bool[src]

Check if this is a variable declaration.

pub fn is_net(&self) -> bool[src]

Check if this is a net declaration.

Trait Implementations

impl<'a> AcceptVisitor<'a> for VarKind[src]

impl Clone for VarKind[src]

impl Copy for VarKind[src]

impl Debug for VarKind[src]

impl Display for VarKind[src]

impl Eq for VarKind[src]

impl<'a> ForEachChild<'a> for VarKind[src]

impl<'a> ForEachNode<'a> for VarKind[src]

impl PartialEq<VarKind> for VarKind[src]

impl StructuralEq for VarKind[src]

impl StructuralPartialEq for VarKind[src]

impl<'a> WalkVisitor<'a> for VarKind[src]

fn walk(&'a self, visitor: &mut dyn Visitor<'a>)[src]

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_var_kind(self)
  • self.accept(visitor)
  • visitor.post_visit_var_kind(self);

Auto Trait Implementations

impl RefUnwindSafe for VarKind

impl Send for VarKind

impl Sync for VarKind

impl Unpin for VarKind

impl UnwindSafe for VarKind

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.