[][src]Struct gf::pivot::var::VarSize

pub struct VarSize(pub u32);

🟢 Bit size of a variable.

Implementations

impl VarSize[src]

pub fn checked_add(self, other: Self) -> Option<Self>[src]

Perform overflow-checking addition.

pub fn checked_sub(self, other: Self) -> Option<Self>[src]

Perform overflow-checking subtraction.

pub fn byte_size_floor(self) -> usize[src]

Return floor of byte size.

pub fn byte_size_ceil(self) -> usize[src]

Return ceiling of byte size.

Trait Implementations

impl Clone for VarSize[src]

impl Copy for VarSize[src]

impl Debug for VarSize[src]

impl Default for VarSize[src]

impl Display for VarSize[src]

impl Eq for VarSize[src]

impl Hash for VarSize[src]

impl IntoU128 for VarSize[src]

impl IntoUsize for VarSize[src]

impl Ord for VarSize[src]

impl PartialEq<VarSize> for VarSize[src]

impl PartialOrd<VarSize> for VarSize[src]

impl StructuralEq for VarSize[src]

impl StructuralPartialEq for VarSize[src]

Auto Trait Implementations

impl RefUnwindSafe for VarSize

impl Send for VarSize

impl Sync for VarSize

impl Unpin for VarSize

impl UnwindSafe for VarSize

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?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.