Struct moore_svlog::ty::SbvType [−][src]
pub struct SbvType {
pub domain: Domain,
pub used_atom: bool,
pub sign: Sign,
pub sign_explicit: bool,
pub size: usize,
pub size_explicit: bool,
}
Expand description
A simple bit vector type.
Fields
domain: Domain
The domain, which dictates whether this is a bit
or logic
vector.
used_atom: bool
Whether the type used an integer atom like int
in the source text.
sign: Sign
The sign.
sign_explicit: bool
Whether the sign was explicit in the source text.
size: usize
The size of the vector.
size_explicit: bool
Whether the single-bit vector had an explicit range in the source text.
Essentially whether it was bit
or bit[a:a]
.
Implementations
Create a new SBVT which expands exactly to <domain> <sign> [<size>-1:0]
.
Create a new SBVT which expands to most terse representation possible.
For example, creating a signed, two-value, 32 bit SBVT will expand to
int
.
Convert the SBVT to a packed type.
Convert the SBVT to an unpacked type.
Check whether the type is unsigned.
Change the size of the type.
Change the domain of the type.
Change the sign of the type.
Check whether this type is identical to another one.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SbvType
impl UnwindSafe for SbvType
Blanket Implementations
Mutably borrows from an owned value. Read more