[−][src]Struct open_vaf::ir::ids::BranchId
Implementations
impl BranchId
[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: u16) -> 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: u16) -> 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) -> u16
[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<BranchId> for usize
[src]
type Output = BranchId
The resulting type after applying the +
operator.
fn add(self, other: BranchId) -> BranchId
[src]
impl Add<BranchId> for BranchId
[src]
type Output = BranchId
The resulting type after applying the +
operator.
fn add(self, other: BranchId) -> BranchId
[src]
impl Add<usize> for BranchId
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: usize) -> Self
[src]
impl AddAssign<BranchId> for BranchId
[src]
fn add_assign(&mut self, other: BranchId)
[src]
impl AddAssign<usize> for BranchId
[src]
fn add_assign(&mut self, other: usize)
[src]
impl Clone for BranchId
[src]
impl Copy for BranchId
[src]
impl Debug for BranchId
[src]
impl Display for BranchId
[src]
impl Eq for BranchId
[src]
impl From<BranchId> for usize
[src]
impl From<BranchId> for u16
[src]
impl From<u16> for BranchId
[src]
impl From<usize> for BranchId
[src]
impl Hash for BranchId
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Idx for BranchId
[src]
impl Index<BranchId> for Ast
[src]
type Output = AttributeNode<BranchDeclaration>
The returned type after indexing.
fn index(&self, index: BranchId) -> &Self::Output
[src]
impl Index<BranchId> for Hir
[src]
type Output = AttributeNode<BranchDeclaration>
The returned type after indexing.
fn index(&self, index: BranchId) -> &Self::Output
[src]
impl Index<BranchId> for Mir
[src]
type Output = AttributeNode<BranchDeclaration>
The returned type after indexing.
fn index(&self, index: BranchId) -> &Self::Output
[src]
impl IndexMut<BranchId> for Ast
[src]
impl IndexMut<BranchId> for Hir
[src]
impl IndexMut<BranchId> for Mir
[src]
impl Ord for BranchId
[src]
fn cmp(&self, other: &BranchId) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<BranchId> for BranchId
[src]
impl PartialEq<BranchId> for usize
[src]
impl PartialEq<usize> for BranchId
[src]
impl PartialOrd<BranchId> for BranchId
[src]
fn partial_cmp(&self, other: &BranchId) -> Option<Ordering>
[src]
fn lt(&self, other: &BranchId) -> bool
[src]
fn le(&self, other: &BranchId) -> bool
[src]
fn gt(&self, other: &BranchId) -> bool
[src]
fn ge(&self, other: &BranchId) -> bool
[src]
impl PartialOrd<BranchId> for usize
[src]
fn partial_cmp(&self, other: &BranchId) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<usize> for BranchId
[src]
fn partial_cmp(&self, other: &usize) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Rem<usize> for BranchId
[src]
type Output = Self
The resulting type after applying the %
operator.
fn rem(self, other: usize) -> Self
[src]
impl StructuralEq for BranchId
[src]
impl StructuralPartialEq for BranchId
[src]
impl Sub<BranchId> for usize
[src]
type Output = BranchId
The resulting type after applying the -
operator.
fn sub(self, other: BranchId) -> BranchId
[src]
impl Sub<BranchId> for BranchId
[src]
type Output = BranchId
The resulting type after applying the -
operator.
fn sub(self, other: BranchId) -> BranchId
[src]
impl Sub<usize> for BranchId
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: usize) -> Self
[src]
impl SubAssign<BranchId> for BranchId
[src]
fn sub_assign(&mut self, other: BranchId)
[src]
impl SubAssign<usize> for BranchId
[src]
fn sub_assign(&mut self, other: usize)
[src]
Auto Trait Implementations
impl RefUnwindSafe for BranchId
impl Send for BranchId
impl Sync for BranchId
impl Unpin for BranchId
impl UnwindSafe for BranchId
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<I, T> IdxSliceIndex<I, T> for I where
I: Idx,
[src]
I: Idx,
type Output = T
fn get(
self,
slice: &IndexSlice<I, [T]>
) -> Option<&<I as IdxSliceIndex<I, T>>::Output>
[src]
self,
slice: &IndexSlice<I, [T]>
) -> Option<&<I as IdxSliceIndex<I, T>>::Output>
fn get_mut(
self,
slice: &mut IndexSlice<I, [T]>
) -> Option<&mut <I as IdxSliceIndex<I, T>>::Output>
[src]
self,
slice: &mut IndexSlice<I, [T]>
) -> Option<&mut <I as IdxSliceIndex<I, T>>::Output>
fn index(
self,
slice: &IndexSlice<I, [T]>
) -> &<I as IdxSliceIndex<I, T>>::Output
[src]
self,
slice: &IndexSlice<I, [T]>
) -> &<I as IdxSliceIndex<I, T>>::Output
fn index_mut(
self,
slice: &mut IndexSlice<I, [T]>
) -> &mut <I as IdxSliceIndex<I, T>>::Output
[src]
self,
slice: &mut IndexSlice<I, [T]>
) -> &mut <I as IdxSliceIndex<I, T>>::Output
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,