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

pub struct VarSize(pub u32);

🟢 Bit size of a variable.


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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.