pub struct LibInBundleI { /* private fields */ }Implementations§
Source§impl LibInBundleI
impl LibInBundleI
Sourcepub const MAX_INDEX: usize
pub const MAX_INDEX: usize
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.
Sourcepub const CHECKS_MAX_INDEX: bool
pub const CHECKS_MAX_INDEX: bool
Does this index type assert if asked to construct an index larger than MAX_INDEX?
Sourcepub fn new(value: usize) -> LibInBundleI
pub fn new(value: usize) -> LibInBundleI
Construct this index type from a usize. Alias for from_usize.
Sourcepub fn from_raw(value: usize) -> LibInBundleI
pub fn from_raw(value: usize) -> LibInBundleI
Construct this index type from the wrapped integer type.
Sourcepub fn from_foreign<F>(value: F) -> LibInBundleIwhere
F: Idx,
pub fn from_foreign<F>(value: F) -> LibInBundleIwhere
F: Idx,
Construct this index type from one in a different domain
Sourcepub const fn from_usize_unchecked(value: usize) -> LibInBundleI
pub const fn from_usize_unchecked(value: usize) -> LibInBundleI
Construct from a usize without any checks.
Sourcepub const fn from_raw_unchecked(raw: usize) -> LibInBundleI
pub const fn from_raw_unchecked(raw: usize) -> LibInBundleI
Construct from the underlying type without any checks.
Sourcepub fn from_usize(value: usize) -> LibInBundleI
pub fn from_usize(value: usize) -> LibInBundleI
Construct this index type from a usize.
Sourcepub fn check_index(v: usize)
pub fn check_index(v: usize)
Asserts v <= Self::MAX_INDEX unless Self::CHECKS_MAX_INDEX is false.
Trait Implementations§
Source§impl Add<LibInBundleI> for usize
impl Add<LibInBundleI> for usize
Source§type Output = LibInBundleI
type Output = LibInBundleI
The resulting type after applying the
+ operator.Source§fn add(self, other: LibInBundleI) -> LibInBundleI
fn add(self, other: LibInBundleI) -> LibInBundleI
Performs the
+ operation. Read moreSource§impl Add<usize> for LibInBundleI
impl Add<usize> for LibInBundleI
Source§type Output = LibInBundleI
type Output = LibInBundleI
The resulting type after applying the
+ operator.Source§impl Add for LibInBundleI
impl Add for LibInBundleI
Source§type Output = LibInBundleI
type Output = LibInBundleI
The resulting type after applying the
+ operator.Source§fn add(self, other: LibInBundleI) -> LibInBundleI
fn add(self, other: LibInBundleI) -> LibInBundleI
Performs the
+ operation. Read moreSource§impl AddAssign<usize> for LibInBundleI
impl AddAssign<usize> for LibInBundleI
Source§fn add_assign(&mut self, other: usize)
fn add_assign(&mut self, other: usize)
Performs the
+= operation. Read moreSource§impl AddAssign for LibInBundleI
impl AddAssign for LibInBundleI
Source§fn add_assign(&mut self, other: LibInBundleI)
fn add_assign(&mut self, other: LibInBundleI)
Performs the
+= operation. Read moreSource§impl Clone for LibInBundleI
impl Clone for LibInBundleI
Source§fn clone(&self) -> LibInBundleI
fn clone(&self) -> LibInBundleI
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LibInBundleI
impl Debug for LibInBundleI
Source§impl<'de> Deserialize<'de> for LibInBundleI
impl<'de> Deserialize<'de> for LibInBundleI
Source§fn deserialize<D>(
deserializer: D,
) -> Result<LibInBundleI, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<LibInBundleI, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<LibInBundleI> for usize
impl From<LibInBundleI> for usize
Source§fn from(v: LibInBundleI) -> usize
fn from(v: LibInBundleI) -> usize
Converts to this type from the input type.
Source§impl From<usize> for LibInBundleI
impl From<usize> for LibInBundleI
Source§fn from(value: usize) -> LibInBundleI
fn from(value: usize) -> LibInBundleI
Converts to this type from the input type.
Source§impl Hash for LibInBundleI
impl Hash for LibInBundleI
Source§impl Idx for LibInBundleI
impl Idx for LibInBundleI
Source§fn from_usize(value: usize) -> LibInBundleI
fn from_usize(value: usize) -> LibInBundleI
Construct an Index from a usize. This is equivalent to
From<usize>. Read moreSource§impl Ord for LibInBundleI
impl Ord for LibInBundleI
Source§fn cmp(&self, other: &LibInBundleI) -> Ordering
fn cmp(&self, other: &LibInBundleI) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<LibInBundleI> for usize
impl PartialEq<LibInBundleI> for usize
Source§fn eq(&self, other: &LibInBundleI) -> bool
fn eq(&self, other: &LibInBundleI) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialEq<usize> for LibInBundleI
impl PartialEq<usize> for LibInBundleI
Source§impl PartialEq for LibInBundleI
impl PartialEq for LibInBundleI
Source§fn eq(&self, other: &LibInBundleI) -> bool
fn eq(&self, other: &LibInBundleI) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd<LibInBundleI> for usize
impl PartialOrd<LibInBundleI> for usize
Source§impl PartialOrd<usize> for LibInBundleI
impl PartialOrd<usize> for LibInBundleI
Source§impl PartialOrd for LibInBundleI
impl PartialOrd for LibInBundleI
Source§impl Rem<usize> for LibInBundleI
impl Rem<usize> for LibInBundleI
Source§type Output = LibInBundleI
type Output = LibInBundleI
The resulting type after applying the
% operator.Source§impl Serialize for LibInBundleI
impl Serialize for LibInBundleI
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl Sub<LibInBundleI> for usize
impl Sub<LibInBundleI> for usize
Source§type Output = LibInBundleI
type Output = LibInBundleI
The resulting type after applying the
- operator.Source§fn sub(self, other: LibInBundleI) -> LibInBundleI
fn sub(self, other: LibInBundleI) -> LibInBundleI
Performs the
- operation. Read moreSource§impl Sub<usize> for LibInBundleI
impl Sub<usize> for LibInBundleI
Source§type Output = LibInBundleI
type Output = LibInBundleI
The resulting type after applying the
- operator.Source§impl Sub for LibInBundleI
impl Sub for LibInBundleI
Source§type Output = LibInBundleI
type Output = LibInBundleI
The resulting type after applying the
- operator.Source§fn sub(self, other: LibInBundleI) -> LibInBundleI
fn sub(self, other: LibInBundleI) -> LibInBundleI
Performs the
- operation. Read moreSource§impl SubAssign<usize> for LibInBundleI
impl SubAssign<usize> for LibInBundleI
Source§fn sub_assign(&mut self, other: usize)
fn sub_assign(&mut self, other: usize)
Performs the
-= operation. Read moreSource§impl SubAssign for LibInBundleI
impl SubAssign for LibInBundleI
Source§fn sub_assign(&mut self, other: LibInBundleI)
fn sub_assign(&mut self, other: LibInBundleI)
Performs the
-= operation. Read moreimpl Copy for LibInBundleI
impl Eq for LibInBundleI
impl StructuralPartialEq for LibInBundleI
Auto Trait Implementations§
impl Freeze for LibInBundleI
impl RefUnwindSafe for LibInBundleI
impl Send for LibInBundleI
impl Sync for LibInBundleI
impl Unpin for LibInBundleI
impl UnsafeUnpin for LibInBundleI
impl UnwindSafe for LibInBundleI
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<A> DynCastExt for A
impl<A> DynCastExt for A
Source§fn dyn_cast<T>(
self,
) -> Result<<A as DynCastExtHelper<T>>::Target, <A as DynCastExtHelper<T>>::Source>where
A: DynCastExtHelper<T>,
T: ?Sized,
fn dyn_cast<T>(
self,
) -> Result<<A as DynCastExtHelper<T>>::Target, <A as DynCastExtHelper<T>>::Source>where
A: DynCastExtHelper<T>,
T: ?Sized,
Use this to cast from one trait object type to another. Read more
Source§fn dyn_upcast<T>(self) -> <A as DynCastExtAdvHelper<T, T>>::Target
fn dyn_upcast<T>(self) -> <A as DynCastExtAdvHelper<T, T>>::Target
Use this to upcast a trait to one of its supertraits. Read more
Source§fn dyn_cast_adv<F, T>(
self,
) -> Result<<A as DynCastExtAdvHelper<F, T>>::Target, <A as DynCastExtAdvHelper<F, T>>::Source>
fn dyn_cast_adv<F, T>( self, ) -> Result<<A as DynCastExtAdvHelper<F, T>>::Target, <A as DynCastExtAdvHelper<F, T>>::Source>
Source§fn dyn_cast_with_config<C>(
self,
) -> Result<<A as DynCastExtAdvHelper<<C as DynCastConfig>::Source, <C as DynCastConfig>::Target>>::Target, <A as DynCastExtAdvHelper<<C as DynCastConfig>::Source, <C as DynCastConfig>::Target>>::Source>where
C: DynCastConfig,
A: DynCastExtAdvHelper<<C as DynCastConfig>::Source, <C as DynCastConfig>::Target>,
fn dyn_cast_with_config<C>(
self,
) -> Result<<A as DynCastExtAdvHelper<<C as DynCastConfig>::Source, <C as DynCastConfig>::Target>>::Target, <A as DynCastExtAdvHelper<<C as DynCastConfig>::Source, <C as DynCastConfig>::Target>>::Source>where
C: DynCastConfig,
A: DynCastExtAdvHelper<<C as DynCastConfig>::Source, <C as DynCastConfig>::Target>,
Use this to cast from one trait object type to another. With this method
the type parameter is a config type that uniquely specifies which cast
should be preformed. Read more
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<I, T> IdxSliceIndex<I, T> for Iwhere
I: Idx,
impl<I, T> IdxSliceIndex<I, T> for Iwhere
I: Idx,
type Output = T
fn get( 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>
fn index( 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more