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.

Check whether the type is signed.

Get the range of the type.

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.

Return a new SBVT that strictly converts to an IntVecType with one dimension.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.