[][src]Struct moore_svlog::ty::Range

pub struct Range {
    pub size: usize,
    pub dir: RangeDir,
    pub offset: isize,
}

The [a:b] part in a vector/array type such as logic [a:b].

Fields

size: usize

The total number of bits, given as |a-b|+1.

dir: RangeDir

The direction of the vector, i.e. whether a > b or a < b.

offset: isize

The starting offset of the range.

Implementations

impl Range[src]

pub fn with_size(size: usize) -> Self[src]

Create a new [<size>-1:0] range.

pub fn left(self) -> isize[src]

The $left dimension.

pub fn right(self) -> isize[src]

The $right dimension.

pub fn low(self) -> isize[src]

The $low dimension.

pub fn high(self) -> isize[src]

The $high dimension.

pub fn increment(self) -> isize[src]

The $increment dimension.

Trait Implementations

impl Clone for Range[src]

impl Copy for Range[src]

impl Debug for Range[src]

impl Display for Range[src]

impl Eq for Range[src]

impl From<Range> for PackedDim[src]

impl From<Range> for UnpackedDim<'_>[src]

impl Hash for Range[src]

impl PartialEq<Range> for Range[src]

impl StructuralEq for Range[src]

impl StructuralPartialEq for Range[src]

Auto Trait Implementations

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> Pointable for T

type Init = T

The type for initializers.

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.