Struct otter::bundles::LibInBundleI
source · [−]#[repr(transparent)]pub struct LibInBundleI { /* private fields */ }
Implementations
sourceimpl LibInBundleI
impl LibInBundleI
sourcepub const MAX_INDEX: usize = 18_446_744_073_709_551_615usize
pub const MAX_INDEX: usize = 18_446_744_073_709_551_615usize
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 = true
pub const CHECKS_MAX_INDEX: bool = true
Does this index type assert if asked to construct an index larger than MAX_INDEX?
sourcepub fn from_foreign<F: Idx>(value: F) -> Self
pub fn from_foreign<F: Idx>(value: F) -> Self
Construct this index type from one in a different domain
sourcepub const fn from_usize_unchecked(value: usize) -> Self
pub const fn from_usize_unchecked(value: usize) -> Self
Construct from a usize without any checks.
sourcepub const fn from_raw_unchecked(raw: usize) -> Self
pub const fn from_raw_unchecked(raw: usize) -> Self
Construct from the underlying type without any checks.
sourcepub fn from_usize(value: usize) -> Self
pub fn from_usize(value: usize) -> Self
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
sourceimpl Add<LibInBundleI> for usize
impl Add<LibInBundleI> for usize
type Output = LibInBundleI
type Output = LibInBundleI
The resulting type after applying the +
operator.
sourcefn add(self, other: LibInBundleI) -> LibInBundleI
fn add(self, other: LibInBundleI) -> LibInBundleI
Performs the +
operation. Read more
sourceimpl Add<LibInBundleI> for LibInBundleI
impl Add<LibInBundleI> for LibInBundleI
type Output = LibInBundleI
type Output = LibInBundleI
The resulting type after applying the +
operator.
sourcefn add(self, other: LibInBundleI) -> LibInBundleI
fn add(self, other: LibInBundleI) -> LibInBundleI
Performs the +
operation. Read more
sourceimpl Add<usize> for LibInBundleI
impl Add<usize> for LibInBundleI
sourceimpl AddAssign<LibInBundleI> for LibInBundleI
impl AddAssign<LibInBundleI> for LibInBundleI
sourcefn add_assign(&mut self, other: LibInBundleI)
fn add_assign(&mut self, other: LibInBundleI)
Performs the +=
operation. Read more
sourceimpl AddAssign<usize> for LibInBundleI
impl AddAssign<usize> for LibInBundleI
sourcefn add_assign(&mut self, other: usize)
fn add_assign(&mut self, other: usize)
Performs the +=
operation. Read more
sourceimpl Clone for LibInBundleI
impl Clone for LibInBundleI
sourcefn clone(&self) -> LibInBundleI
fn clone(&self) -> LibInBundleI
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LibInBundleI
impl Debug for LibInBundleI
sourceimpl<'de> Deserialize<'de> for LibInBundleI
impl<'de> Deserialize<'de> for LibInBundleI
sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<LibInBundleI> for usize
impl From<LibInBundleI> for usize
sourcefn from(v: LibInBundleI) -> usize
fn from(v: LibInBundleI) -> usize
Converts to this type from the input type.
sourceimpl From<usize> for LibInBundleI
impl From<usize> for LibInBundleI
sourceimpl Hash for LibInBundleI
impl Hash for LibInBundleI
sourceimpl Idx for LibInBundleI
impl Idx for LibInBundleI
sourceimpl Ord for LibInBundleI
impl Ord for LibInBundleI
sourceimpl PartialEq<LibInBundleI> for LibInBundleI
impl PartialEq<LibInBundleI> for LibInBundleI
sourcefn eq(&self, other: &LibInBundleI) -> bool
fn eq(&self, other: &LibInBundleI) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LibInBundleI) -> bool
fn ne(&self, other: &LibInBundleI) -> bool
This method tests for !=
.
sourceimpl PartialEq<LibInBundleI> for usize
impl PartialEq<LibInBundleI> for usize
sourceimpl PartialEq<usize> for LibInBundleI
impl PartialEq<usize> for LibInBundleI
sourceimpl PartialOrd<LibInBundleI> for LibInBundleI
impl PartialOrd<LibInBundleI> for LibInBundleI
sourcefn partial_cmp(&self, other: &LibInBundleI) -> Option<Ordering>
fn partial_cmp(&self, other: &LibInBundleI) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl PartialOrd<LibInBundleI> for usize
impl PartialOrd<LibInBundleI> for usize
sourcefn partial_cmp(&self, other: &LibInBundleI) -> Option<Ordering>
fn partial_cmp(&self, other: &LibInBundleI) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl PartialOrd<usize> for LibInBundleI
impl PartialOrd<usize> for LibInBundleI
sourcefn partial_cmp(&self, other: &usize) -> Option<Ordering>
fn partial_cmp(&self, other: &usize) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Rem<usize> for LibInBundleI
impl Rem<usize> for LibInBundleI
sourceimpl Serialize for LibInBundleI
impl Serialize for LibInBundleI
sourceimpl Sub<LibInBundleI> for usize
impl Sub<LibInBundleI> for usize
type Output = LibInBundleI
type Output = LibInBundleI
The resulting type after applying the -
operator.
sourcefn sub(self, other: LibInBundleI) -> LibInBundleI
fn sub(self, other: LibInBundleI) -> LibInBundleI
Performs the -
operation. Read more
sourceimpl Sub<LibInBundleI> for LibInBundleI
impl Sub<LibInBundleI> for LibInBundleI
type Output = LibInBundleI
type Output = LibInBundleI
The resulting type after applying the -
operator.
sourcefn sub(self, other: LibInBundleI) -> LibInBundleI
fn sub(self, other: LibInBundleI) -> LibInBundleI
Performs the -
operation. Read more
sourceimpl Sub<usize> for LibInBundleI
impl Sub<usize> for LibInBundleI
sourceimpl SubAssign<LibInBundleI> for LibInBundleI
impl SubAssign<LibInBundleI> for LibInBundleI
sourcefn sub_assign(&mut self, other: LibInBundleI)
fn sub_assign(&mut self, other: LibInBundleI)
Performs the -=
operation. Read more
sourceimpl SubAssign<usize> for LibInBundleI
impl SubAssign<usize> for LibInBundleI
sourcefn sub_assign(&mut self, other: usize)
fn sub_assign(&mut self, other: usize)
Performs the -=
operation. Read more
impl Copy for LibInBundleI
impl Eq for LibInBundleI
impl StructuralEq for LibInBundleI
impl StructuralPartialEq for LibInBundleI
Auto Trait Implementations
impl RefUnwindSafe for LibInBundleI
impl Send for LibInBundleI
impl Sync for LibInBundleI
impl Unpin for LibInBundleI
impl UnwindSafe for LibInBundleI
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
sourcefn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘNotable traits for Box<W, Global>impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘNotable traits for Box<W, Global>impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
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
. Read more
sourcefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
sourcefn 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. Read more
sourcefn 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. Read more
sourceimpl<T> DowncastSync for T where
T: Any + Send + Sync,
impl<T> DowncastSync for T where
T: Any + Send + Sync,
sourceimpl<A> DynCastExt for A
impl<A> DynCastExt for A
sourcefn 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
sourcefn dyn_upcast<T>(self) -> <A as DynCastExtAdvHelper<T, T>>::Target where
A: DynCastExtAdvHelper<T, T, Source = <A as DynCastExtAdvHelper<T, T>>::Target>,
T: ?Sized,
fn dyn_upcast<T>(self) -> <A as DynCastExtAdvHelper<T, T>>::Target where
A: DynCastExtAdvHelper<T, T, Source = <A as DynCastExtAdvHelper<T, T>>::Target>,
T: ?Sized,
Use this to upcast a trait to one of its supertraits. Read more
sourcefn dyn_cast_adv<F, T>(
self
) -> Result<<A as DynCastExtAdvHelper<F, T>>::Target, <A as DynCastExtAdvHelper<F, T>>::Source> where
A: DynCastExtAdvHelper<F, T>,
F: ?Sized,
T: ?Sized,
fn dyn_cast_adv<F, T>(
self
) -> Result<<A as DynCastExtAdvHelper<F, T>>::Target, <A as DynCastExtAdvHelper<F, T>>::Source> where
A: DynCastExtAdvHelper<F, T>,
F: ?Sized,
T: ?Sized,
sourcefn 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