[][src]Struct open_vaf::ir::ids::StringExpressionId

#[repr(transparent)]pub struct StringExpressionId { /* fields omitted */ }

Implementations

impl StringExpressionId[src]

pub const MAX_INDEX: usize[src]

If Self::CHECKS_MAX_INDEX is true, we'll assert if trying to produce a value larger than this in any of the ctors that don't have unchecked in their name.

pub const CHECKS_MAX_INDEX: bool[src]

Does this index type assert if asked to construct an index larger than MAX_INDEX?

pub fn new(value: usize) -> Self[src]

Construct this index type from a usize. Alias for from_usize.

pub fn from_raw(value: u32) -> Self[src]

Construct this index type from the wrapped integer type.

pub fn from_foreign<F: Idx>(value: F) -> Self[src]

Construct this index type from one in a different domain

pub const fn from_usize_unchecked(value: usize) -> Self[src]

Construct from a usize without any checks.

pub const fn from_raw_unchecked(raw: u32) -> Self[src]

Construct from the underlying type without any checks.

pub fn from_usize(value: usize) -> Self[src]

Construct this index type from a usize.

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

Get the wrapped index as a usize.

pub fn raw(self) -> u32[src]

Get the wrapped index.

pub fn check_index(v: usize)[src]

Asserts v <= Self::MAX_INDEX unless Self::CHECKS_MAX_INDEX is false.

Trait Implementations

impl Add<StringExpressionId> for usize[src]

type Output = StringExpressionId

The resulting type after applying the + operator.

impl Add<StringExpressionId> for StringExpressionId[src]

type Output = StringExpressionId

The resulting type after applying the + operator.

impl Add<usize> for StringExpressionId[src]

type Output = Self

The resulting type after applying the + operator.

impl AddAssign<StringExpressionId> for StringExpressionId[src]

impl AddAssign<usize> for StringExpressionId[src]

impl Clone for StringExpressionId[src]

impl Copy for StringExpressionId[src]

impl Debug for StringExpressionId[src]

impl Display for StringExpressionId[src]

impl Eq for StringExpressionId[src]

impl From<StringExpressionId> for usize[src]

impl From<StringExpressionId> for u32[src]

impl From<u32> for StringExpressionId[src]

impl From<usize> for StringExpressionId[src]

impl Hash for StringExpressionId[src]

impl Idx for StringExpressionId[src]

impl Index<StringExpressionId> for Mir[src]

type Output = Node<StringExpression>

The returned type after indexing.

impl IndexMut<StringExpressionId> for Mir[src]

impl Ord for StringExpressionId[src]

impl PartialEq<StringExpressionId> for StringExpressionId[src]

impl PartialEq<StringExpressionId> for usize[src]

impl PartialEq<usize> for StringExpressionId[src]

impl PartialOrd<StringExpressionId> for StringExpressionId[src]

impl PartialOrd<StringExpressionId> for usize[src]

impl PartialOrd<usize> for StringExpressionId[src]

impl Rem<usize> for StringExpressionId[src]

type Output = Self

The resulting type after applying the % operator.

impl StructuralEq for StringExpressionId[src]

impl StructuralPartialEq for StringExpressionId[src]

impl Sub<StringExpressionId> for usize[src]

type Output = StringExpressionId

The resulting type after applying the - operator.

impl Sub<StringExpressionId> for StringExpressionId[src]

type Output = StringExpressionId

The resulting type after applying the - operator.

impl Sub<usize> for StringExpressionId[src]

type Output = Self

The resulting type after applying the - operator.

impl SubAssign<StringExpressionId> for StringExpressionId[src]

impl SubAssign<usize> for StringExpressionId[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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<I, T> IdxSliceIndex<I, T> for I where
    I: Idx
[src]

type Output = T

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.