Struct kimchi_msm::circuit_design::composition::IdMPrism
source · pub struct IdMPrism<T>(pub PhantomData<T>);
Expand description
Identity MPrism
from any type T
to itself.
Can be used in many situations. E.g. when foo1
and foo2
both
call bar
that is parameterised by a lens, and foo1
has
identical context to bar
(so requires the ID lens), but foo2
needs an actual non-ID lens.
Tuple Fields§
§0: PhantomData<T>
Trait Implementations§
impl<T: Copy> Copy for IdMPrism<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for IdMPrism<T>where T: RefUnwindSafe,
impl<T> Send for IdMPrism<T>where T: Send,
impl<T> Sync for IdMPrism<T>where T: Sync,
impl<T> Unpin for IdMPrism<T>where T: Unpin,
impl<T> UnwindSafe for IdMPrism<T>where T: UnwindSafe,
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