Struct Identity
pub struct Identity;Expand description
Identity operation: f(x) = x
Trait Implementations§
§impl<T> ComposableElementOp<T> for Identitywhere
T: ElementOpApply,
impl<T> ComposableElementOp<T> for Identitywhere
T: ElementOpApply,
§type ComposeConj = Conj
type ComposeConj = Conj
Compose with Conj: Self then Conj
§type ComposeTranspose = Transpose
type ComposeTranspose = Transpose
Compose with Transpose: Self then Transpose
§type ComposeAdjoint = Adjoint
type ComposeAdjoint = Adjoint
Compose with Adjoint: Self then Adjoint
impl Copy for Identity
§impl<T> ElementOp<T> for Identitywhere
T: Copy,
impl<T> ElementOp<T> for Identitywhere
T: Copy,
§const IS_IDENTITY: bool = true
const IS_IDENTITY: bool = true
Whether this operation is the identity (no-op).
impl Eq for Identity
impl StructuralPartialEq for Identity
Auto Trait Implementations§
impl Freeze for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnsafeUnpin for Identity
impl UnwindSafe for Identity
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