pub struct Ref<T>(pub Rc<RefCell<T>>);Tuple Fields§
§0: Rc<RefCell<T>>Implementations§
Trait Implementations§
Source§impl<T> CompileConst for Ref<Matrix<T, Const<1>, Dyn, VecStorage<T, Const<1>, Dyn>>>
Available on crate feature row_vectord only.
impl<T> CompileConst for Ref<Matrix<T, Const<1>, Dyn, VecStorage<T, Const<1>, Dyn>>>
Available on crate feature
row_vectord only.fn compile_const(&self, ctx: &mut CompileCtx) -> Result<u32, MechError2>
Source§impl<T> CompileConst for Ref<Matrix<T, Dyn, Const<1>, VecStorage<T, Dyn, Const<1>>>>
Available on crate feature vectord only.
impl<T> CompileConst for Ref<Matrix<T, Dyn, Const<1>, VecStorage<T, Dyn, Const<1>>>>
Available on crate feature
vectord only.fn compile_const(&self, ctx: &mut CompileCtx) -> Result<u32, MechError2>
Source§impl<T> CompileConst for Ref<Matrix<T, Dyn, Dyn, VecStorage<T, Dyn, Dyn>>>
Available on crate feature matrixd only.
impl<T> CompileConst for Ref<Matrix<T, Dyn, Dyn, VecStorage<T, Dyn, Dyn>>>
Available on crate feature
matrixd only.fn compile_const(&self, ctx: &mut CompileCtx) -> Result<u32, MechError2>
Source§impl<T> CopyMat<T> for Ref<Matrix<T, Const<1>, Dyn, VecStorage<T, Const<1>, Dyn>>>where
T: Clone + CompileConst + ConstElem,
Matrix<T, Const<1>, Dyn, VecStorage<T, Const<1>, Dyn>>: CompileConst + ConstElem,
impl<T> CopyMat<T> for Ref<Matrix<T, Const<1>, Dyn, VecStorage<T, Const<1>, Dyn>>>where
T: Clone + CompileConst + ConstElem,
Matrix<T, Const<1>, Dyn, VecStorage<T, Const<1>, Dyn>>: CompileConst + ConstElem,
fn copy_into( &self, dst: &Ref<Matrix<T, Dyn, Dyn, VecStorage<T, Dyn, Dyn>>>, offset: usize, ) -> usize
fn copy_into_v( &self, dst: &Ref<Matrix<T, Dyn, Const<1>, VecStorage<T, Dyn, Const<1>>>>, offset: usize, ) -> usize
fn copy_into_r( &self, dst: &Ref<Matrix<T, Const<1>, Dyn, VecStorage<T, Const<1>, Dyn>>>, offset: usize, ) -> usize
fn copy_into_row_major( &self, dst: &Ref<Matrix<T, Dyn, Dyn, VecStorage<T, Dyn, Dyn>>>, offset: usize, ) -> usize
fn addr(&self) -> usize
fn compile_const_mat(&self, ctx: &mut CompileCtx) -> Result<u32, MechError2>
Source§impl<T> CopyMat<T> for Ref<Matrix<T, Dyn, Const<1>, VecStorage<T, Dyn, Const<1>>>>where
T: Clone + CompileConst + ConstElem,
Matrix<T, Dyn, Const<1>, VecStorage<T, Dyn, Const<1>>>: CompileConst + ConstElem,
impl<T> CopyMat<T> for Ref<Matrix<T, Dyn, Const<1>, VecStorage<T, Dyn, Const<1>>>>where
T: Clone + CompileConst + ConstElem,
Matrix<T, Dyn, Const<1>, VecStorage<T, Dyn, Const<1>>>: CompileConst + ConstElem,
fn copy_into( &self, dst: &Ref<Matrix<T, Dyn, Dyn, VecStorage<T, Dyn, Dyn>>>, offset: usize, ) -> usize
fn copy_into_v( &self, dst: &Ref<Matrix<T, Dyn, Const<1>, VecStorage<T, Dyn, Const<1>>>>, offset: usize, ) -> usize
fn copy_into_r( &self, dst: &Ref<Matrix<T, Const<1>, Dyn, VecStorage<T, Const<1>, Dyn>>>, offset: usize, ) -> usize
fn copy_into_row_major( &self, dst: &Ref<Matrix<T, Dyn, Dyn, VecStorage<T, Dyn, Dyn>>>, offset: usize, ) -> usize
fn addr(&self) -> usize
fn compile_const_mat(&self, ctx: &mut CompileCtx) -> Result<u32, MechError2>
Source§impl<T> CopyMat<T> for Ref<Matrix<T, Dyn, Dyn, VecStorage<T, Dyn, Dyn>>>where
T: Clone + CompileConst + ConstElem,
Matrix<T, Dyn, Dyn, VecStorage<T, Dyn, Dyn>>: CompileConst + ConstElem,
impl<T> CopyMat<T> for Ref<Matrix<T, Dyn, Dyn, VecStorage<T, Dyn, Dyn>>>where
T: Clone + CompileConst + ConstElem,
Matrix<T, Dyn, Dyn, VecStorage<T, Dyn, Dyn>>: CompileConst + ConstElem,
fn copy_into( &self, dst: &Ref<Matrix<T, Dyn, Dyn, VecStorage<T, Dyn, Dyn>>>, offset: usize, ) -> usize
fn copy_into_v( &self, dst: &Ref<Matrix<T, Dyn, Const<1>, VecStorage<T, Dyn, Const<1>>>>, offset: usize, ) -> usize
fn copy_into_r( &self, dst: &Ref<Matrix<T, Const<1>, Dyn, VecStorage<T, Const<1>, Dyn>>>, offset: usize, ) -> usize
fn copy_into_row_major( &self, dst: &Ref<Matrix<T, Dyn, Dyn, VecStorage<T, Dyn, Dyn>>>, offset: usize, ) -> usize
fn addr(&self) -> usize
fn compile_const_mat(&self, ctx: &mut CompileCtx) -> Result<u32, MechError2>
Source§impl ToValue for Ref<Matrix<C64, Const<1>, Dyn, VecStorage<C64, Const<1>, Dyn>>>
Available on crate features matrix and complex only.
impl ToValue for Ref<Matrix<C64, Const<1>, Dyn, VecStorage<C64, Const<1>, Dyn>>>
Available on crate features
matrix and complex only.Source§impl ToValue for Ref<Matrix<C64, Dyn, Const<1>, VecStorage<C64, Dyn, Const<1>>>>
Available on crate features matrix and complex only.
impl ToValue for Ref<Matrix<C64, Dyn, Const<1>, VecStorage<C64, Dyn, Const<1>>>>
Available on crate features
matrix and complex only.Source§impl ToValue for Ref<Matrix<C64, Dyn, Dyn, VecStorage<C64, Dyn, Dyn>>>
Available on crate features matrix and complex only.
impl ToValue for Ref<Matrix<C64, Dyn, Dyn, VecStorage<C64, Dyn, Dyn>>>
Available on crate features
matrix and complex only.Source§impl ToValue for Ref<Matrix<R64, Const<1>, Dyn, VecStorage<R64, Const<1>, Dyn>>>
Available on crate features matrix and rational only.
impl ToValue for Ref<Matrix<R64, Const<1>, Dyn, VecStorage<R64, Const<1>, Dyn>>>
Available on crate features
matrix and rational only.Source§impl ToValue for Ref<Matrix<R64, Dyn, Const<1>, VecStorage<R64, Dyn, Const<1>>>>
Available on crate features matrix and rational only.
impl ToValue for Ref<Matrix<R64, Dyn, Const<1>, VecStorage<R64, Dyn, Const<1>>>>
Available on crate features
matrix and rational only.Source§impl ToValue for Ref<Matrix<R64, Dyn, Dyn, VecStorage<R64, Dyn, Dyn>>>
Available on crate features matrix and rational only.
impl ToValue for Ref<Matrix<R64, Dyn, Dyn, VecStorage<R64, Dyn, Dyn>>>
Available on crate features
matrix and rational only.Source§impl ToValue for Ref<Matrix<String, Const<1>, Dyn, VecStorage<String, Const<1>, Dyn>>>
Available on crate features matrix and string only.
impl ToValue for Ref<Matrix<String, Const<1>, Dyn, VecStorage<String, Const<1>, Dyn>>>
Available on crate features
matrix and string only.Source§impl ToValue for Ref<Matrix<String, Dyn, Const<1>, VecStorage<String, Dyn, Const<1>>>>
Available on crate features matrix and string only.
impl ToValue for Ref<Matrix<String, Dyn, Const<1>, VecStorage<String, Dyn, Const<1>>>>
Available on crate features
matrix and string only.Source§impl ToValue for Ref<Matrix<String, Dyn, Dyn, VecStorage<String, Dyn, Dyn>>>
Available on crate features matrix and string only.
impl ToValue for Ref<Matrix<String, Dyn, Dyn, VecStorage<String, Dyn, Dyn>>>
Available on crate features
matrix and string only.Source§impl ToValue for Ref<Matrix<bool, Const<1>, Dyn, VecStorage<bool, Const<1>, Dyn>>>
Available on crate features matrix and bool only.
impl ToValue for Ref<Matrix<bool, Const<1>, Dyn, VecStorage<bool, Const<1>, Dyn>>>
Available on crate features
matrix and bool only.Source§impl ToValue for Ref<Matrix<bool, Dyn, Const<1>, VecStorage<bool, Dyn, Const<1>>>>
Available on crate features matrix and bool only.
impl ToValue for Ref<Matrix<bool, Dyn, Const<1>, VecStorage<bool, Dyn, Const<1>>>>
Available on crate features
matrix and bool only.Source§impl ToValue for Ref<Matrix<bool, Dyn, Dyn, VecStorage<bool, Dyn, Dyn>>>
Available on crate features matrix and bool only.
impl ToValue for Ref<Matrix<bool, Dyn, Dyn, VecStorage<bool, Dyn, Dyn>>>
Available on crate features
matrix and bool only.Source§impl ToValue for Ref<Matrix<f32, Const<1>, Dyn, VecStorage<f32, Const<1>, Dyn>>>
Available on crate features matrix and f32 only.
impl ToValue for Ref<Matrix<f32, Const<1>, Dyn, VecStorage<f32, Const<1>, Dyn>>>
Available on crate features
matrix and f32 only.Source§impl ToValue for Ref<Matrix<f32, Dyn, Const<1>, VecStorage<f32, Dyn, Const<1>>>>
Available on crate features matrix and f32 only.
impl ToValue for Ref<Matrix<f32, Dyn, Const<1>, VecStorage<f32, Dyn, Const<1>>>>
Available on crate features
matrix and f32 only.Source§impl ToValue for Ref<Matrix<f32, Dyn, Dyn, VecStorage<f32, Dyn, Dyn>>>
Available on crate features matrix and f32 only.
impl ToValue for Ref<Matrix<f32, Dyn, Dyn, VecStorage<f32, Dyn, Dyn>>>
Available on crate features
matrix and f32 only.Source§impl ToValue for Ref<Matrix<f64, Const<1>, Dyn, VecStorage<f64, Const<1>, Dyn>>>
Available on crate features matrix and f64 only.
impl ToValue for Ref<Matrix<f64, Const<1>, Dyn, VecStorage<f64, Const<1>, Dyn>>>
Available on crate features
matrix and f64 only.Source§impl ToValue for Ref<Matrix<f64, Dyn, Const<1>, VecStorage<f64, Dyn, Const<1>>>>
Available on crate features matrix and f64 only.
impl ToValue for Ref<Matrix<f64, Dyn, Const<1>, VecStorage<f64, Dyn, Const<1>>>>
Available on crate features
matrix and f64 only.Source§impl ToValue for Ref<Matrix<f64, Dyn, Dyn, VecStorage<f64, Dyn, Dyn>>>
Available on crate features matrix and f64 only.
impl ToValue for Ref<Matrix<f64, Dyn, Dyn, VecStorage<f64, Dyn, Dyn>>>
Available on crate features
matrix and f64 only.Source§impl ToValue for Ref<Matrix<i128, Const<1>, Dyn, VecStorage<i128, Const<1>, Dyn>>>
Available on crate features matrix and i128 only.
impl ToValue for Ref<Matrix<i128, Const<1>, Dyn, VecStorage<i128, Const<1>, Dyn>>>
Available on crate features
matrix and i128 only.Source§impl ToValue for Ref<Matrix<i128, Dyn, Const<1>, VecStorage<i128, Dyn, Const<1>>>>
Available on crate features matrix and i128 only.
impl ToValue for Ref<Matrix<i128, Dyn, Const<1>, VecStorage<i128, Dyn, Const<1>>>>
Available on crate features
matrix and i128 only.Source§impl ToValue for Ref<Matrix<i128, Dyn, Dyn, VecStorage<i128, Dyn, Dyn>>>
Available on crate features matrix and i128 only.
impl ToValue for Ref<Matrix<i128, Dyn, Dyn, VecStorage<i128, Dyn, Dyn>>>
Available on crate features
matrix and i128 only.Source§impl ToValue for Ref<Matrix<i16, Const<1>, Dyn, VecStorage<i16, Const<1>, Dyn>>>
Available on crate features matrix and i16 only.
impl ToValue for Ref<Matrix<i16, Const<1>, Dyn, VecStorage<i16, Const<1>, Dyn>>>
Available on crate features
matrix and i16 only.Source§impl ToValue for Ref<Matrix<i16, Dyn, Const<1>, VecStorage<i16, Dyn, Const<1>>>>
Available on crate features matrix and i16 only.
impl ToValue for Ref<Matrix<i16, Dyn, Const<1>, VecStorage<i16, Dyn, Const<1>>>>
Available on crate features
matrix and i16 only.Source§impl ToValue for Ref<Matrix<i16, Dyn, Dyn, VecStorage<i16, Dyn, Dyn>>>
Available on crate features matrix and i16 only.
impl ToValue for Ref<Matrix<i16, Dyn, Dyn, VecStorage<i16, Dyn, Dyn>>>
Available on crate features
matrix and i16 only.Source§impl ToValue for Ref<Matrix<i32, Const<1>, Dyn, VecStorage<i32, Const<1>, Dyn>>>
Available on crate features matrix and i32 only.
impl ToValue for Ref<Matrix<i32, Const<1>, Dyn, VecStorage<i32, Const<1>, Dyn>>>
Available on crate features
matrix and i32 only.Source§impl ToValue for Ref<Matrix<i32, Dyn, Const<1>, VecStorage<i32, Dyn, Const<1>>>>
Available on crate features matrix and i32 only.
impl ToValue for Ref<Matrix<i32, Dyn, Const<1>, VecStorage<i32, Dyn, Const<1>>>>
Available on crate features
matrix and i32 only.Source§impl ToValue for Ref<Matrix<i32, Dyn, Dyn, VecStorage<i32, Dyn, Dyn>>>
Available on crate features matrix and i32 only.
impl ToValue for Ref<Matrix<i32, Dyn, Dyn, VecStorage<i32, Dyn, Dyn>>>
Available on crate features
matrix and i32 only.Source§impl ToValue for Ref<Matrix<i64, Const<1>, Dyn, VecStorage<i64, Const<1>, Dyn>>>
Available on crate features matrix and i64 only.
impl ToValue for Ref<Matrix<i64, Const<1>, Dyn, VecStorage<i64, Const<1>, Dyn>>>
Available on crate features
matrix and i64 only.Source§impl ToValue for Ref<Matrix<i64, Dyn, Const<1>, VecStorage<i64, Dyn, Const<1>>>>
Available on crate features matrix and i64 only.
impl ToValue for Ref<Matrix<i64, Dyn, Const<1>, VecStorage<i64, Dyn, Const<1>>>>
Available on crate features
matrix and i64 only.Source§impl ToValue for Ref<Matrix<i64, Dyn, Dyn, VecStorage<i64, Dyn, Dyn>>>
Available on crate features matrix and i64 only.
impl ToValue for Ref<Matrix<i64, Dyn, Dyn, VecStorage<i64, Dyn, Dyn>>>
Available on crate features
matrix and i64 only.Source§impl ToValue for Ref<Matrix<i8, Const<1>, Dyn, VecStorage<i8, Const<1>, Dyn>>>
Available on crate features matrix and i8 only.
impl ToValue for Ref<Matrix<i8, Const<1>, Dyn, VecStorage<i8, Const<1>, Dyn>>>
Available on crate features
matrix and i8 only.Source§impl ToValue for Ref<Matrix<i8, Dyn, Const<1>, VecStorage<i8, Dyn, Const<1>>>>
Available on crate features matrix and i8 only.
impl ToValue for Ref<Matrix<i8, Dyn, Const<1>, VecStorage<i8, Dyn, Const<1>>>>
Available on crate features
matrix and i8 only.Source§impl ToValue for Ref<Matrix<i8, Dyn, Dyn, VecStorage<i8, Dyn, Dyn>>>
Available on crate features matrix and i8 only.
impl ToValue for Ref<Matrix<i8, Dyn, Dyn, VecStorage<i8, Dyn, Dyn>>>
Available on crate features
matrix and i8 only.Source§impl ToValue for Ref<Matrix<u128, Const<1>, Dyn, VecStorage<u128, Const<1>, Dyn>>>
Available on crate features matrix and u128 only.
impl ToValue for Ref<Matrix<u128, Const<1>, Dyn, VecStorage<u128, Const<1>, Dyn>>>
Available on crate features
matrix and u128 only.Source§impl ToValue for Ref<Matrix<u128, Dyn, Const<1>, VecStorage<u128, Dyn, Const<1>>>>
Available on crate features matrix and u128 only.
impl ToValue for Ref<Matrix<u128, Dyn, Const<1>, VecStorage<u128, Dyn, Const<1>>>>
Available on crate features
matrix and u128 only.Source§impl ToValue for Ref<Matrix<u128, Dyn, Dyn, VecStorage<u128, Dyn, Dyn>>>
Available on crate features matrix and u128 only.
impl ToValue for Ref<Matrix<u128, Dyn, Dyn, VecStorage<u128, Dyn, Dyn>>>
Available on crate features
matrix and u128 only.Source§impl ToValue for Ref<Matrix<u16, Const<1>, Dyn, VecStorage<u16, Const<1>, Dyn>>>
Available on crate features matrix and u16 only.
impl ToValue for Ref<Matrix<u16, Const<1>, Dyn, VecStorage<u16, Const<1>, Dyn>>>
Available on crate features
matrix and u16 only.Source§impl ToValue for Ref<Matrix<u16, Dyn, Const<1>, VecStorage<u16, Dyn, Const<1>>>>
Available on crate features matrix and u16 only.
impl ToValue for Ref<Matrix<u16, Dyn, Const<1>, VecStorage<u16, Dyn, Const<1>>>>
Available on crate features
matrix and u16 only.Source§impl ToValue for Ref<Matrix<u16, Dyn, Dyn, VecStorage<u16, Dyn, Dyn>>>
Available on crate features matrix and u16 only.
impl ToValue for Ref<Matrix<u16, Dyn, Dyn, VecStorage<u16, Dyn, Dyn>>>
Available on crate features
matrix and u16 only.Source§impl ToValue for Ref<Matrix<u32, Const<1>, Dyn, VecStorage<u32, Const<1>, Dyn>>>
Available on crate features matrix and u32 only.
impl ToValue for Ref<Matrix<u32, Const<1>, Dyn, VecStorage<u32, Const<1>, Dyn>>>
Available on crate features
matrix and u32 only.Source§impl ToValue for Ref<Matrix<u32, Dyn, Const<1>, VecStorage<u32, Dyn, Const<1>>>>
Available on crate features matrix and u32 only.
impl ToValue for Ref<Matrix<u32, Dyn, Const<1>, VecStorage<u32, Dyn, Const<1>>>>
Available on crate features
matrix and u32 only.Source§impl ToValue for Ref<Matrix<u32, Dyn, Dyn, VecStorage<u32, Dyn, Dyn>>>
Available on crate features matrix and u32 only.
impl ToValue for Ref<Matrix<u32, Dyn, Dyn, VecStorage<u32, Dyn, Dyn>>>
Available on crate features
matrix and u32 only.Source§impl ToValue for Ref<Matrix<u64, Const<1>, Dyn, VecStorage<u64, Const<1>, Dyn>>>
Available on crate features matrix and u64 only.
impl ToValue for Ref<Matrix<u64, Const<1>, Dyn, VecStorage<u64, Const<1>, Dyn>>>
Available on crate features
matrix and u64 only.Source§impl ToValue for Ref<Matrix<u64, Dyn, Const<1>, VecStorage<u64, Dyn, Const<1>>>>
Available on crate features matrix and u64 only.
impl ToValue for Ref<Matrix<u64, Dyn, Const<1>, VecStorage<u64, Dyn, Const<1>>>>
Available on crate features
matrix and u64 only.Source§impl ToValue for Ref<Matrix<u64, Dyn, Dyn, VecStorage<u64, Dyn, Dyn>>>
Available on crate features matrix and u64 only.
impl ToValue for Ref<Matrix<u64, Dyn, Dyn, VecStorage<u64, Dyn, Dyn>>>
Available on crate features
matrix and u64 only.Source§impl ToValue for Ref<Matrix<u8, Const<1>, Dyn, VecStorage<u8, Const<1>, Dyn>>>
Available on crate features matrix and u8 only.
impl ToValue for Ref<Matrix<u8, Const<1>, Dyn, VecStorage<u8, Const<1>, Dyn>>>
Available on crate features
matrix and u8 only.Source§impl ToValue for Ref<Matrix<u8, Dyn, Const<1>, VecStorage<u8, Dyn, Const<1>>>>
Available on crate features matrix and u8 only.
impl ToValue for Ref<Matrix<u8, Dyn, Const<1>, VecStorage<u8, Dyn, Const<1>>>>
Available on crate features
matrix and u8 only.Source§impl ToValue for Ref<Matrix<u8, Dyn, Dyn, VecStorage<u8, Dyn, Dyn>>>
Available on crate features matrix and u8 only.
impl ToValue for Ref<Matrix<u8, Dyn, Dyn, VecStorage<u8, Dyn, Dyn>>>
Available on crate features
matrix and u8 only.Source§impl ToValue for Ref<Matrix<usize, Const<1>, Dyn, VecStorage<usize, Const<1>, Dyn>>>
Available on crate feature matrix only.
impl ToValue for Ref<Matrix<usize, Const<1>, Dyn, VecStorage<usize, Const<1>, Dyn>>>
Available on crate feature
matrix only.Source§impl ToValue for Ref<Matrix<usize, Dyn, Const<1>, VecStorage<usize, Dyn, Const<1>>>>
Available on crate feature matrix only.
impl ToValue for Ref<Matrix<usize, Dyn, Const<1>, VecStorage<usize, Dyn, Const<1>>>>
Available on crate feature
matrix only.Source§impl ToValue for Ref<Matrix<usize, Dyn, Dyn, VecStorage<usize, Dyn, Dyn>>>
Available on crate feature matrix only.
impl ToValue for Ref<Matrix<usize, Dyn, Dyn, VecStorage<usize, Dyn, Dyn>>>
Available on crate feature
matrix only.Source§impl ToValue for Ref<MechRecord>
Available on crate feature record only.
impl ToValue for Ref<MechRecord>
Available on crate feature
record only.impl<T> Eq for Ref<T>where
T: PartialEq,
Auto Trait Implementations§
impl<T> Freeze for Ref<T>
impl<T> !RefUnwindSafe for Ref<T>
impl<T> !Send for Ref<T>
impl<T> !Sync for Ref<T>
impl<T> Unpin for Ref<T>
impl<T> !UnwindSafe for Ref<T>
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> 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<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 moreSource§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.