Struct moore_vhdl::ty2::NullType [−][src]
pub struct NullType;
Expand description
A null type.
This type is not strictly part of the VHDL type system. Rather, arrays that have negative length degenerate into null arrays. We handle these types explicitly, since they significantly change how types match.
Example
use moore_vhdl::ty2::{Type, NullType};
let ty = NullType;
assert_eq!(format!("{}", ty), "null");
assert_eq!(ty.is_scalar(), false);
assert_eq!(ty.is_discrete(), false);
assert_eq!(ty.is_numeric(), false);
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for NullType
impl UnwindSafe for NullType
Blanket Implementations
Mutably borrows from an owned value. Read more