pub struct InjectOperation<L: Layer, F: Fn(&mut L, &[L::Operation]) -> L::Requested, G: Fn(&mut L, &mut L::Buffer) -> L::Response, H: Fn(&mut L, &[L::Operation], &mut L::Buffer) -> L::Response>(/* private fields */);Implementations§
Trait Implementations§
Source§impl<L: Layer + CXGate, F: Fn(&mut L, &[L::Operation]) -> L::Requested, G: Fn(&mut L, &mut L::Buffer) -> L::Response, H: Fn(&mut L, &[L::Operation], &mut L::Buffer) -> L::Response> CXOperation<InjectLayer<L, F, G, H>> for InjectOperation<L, F, G, H>
impl<L: Layer + CXGate, F: Fn(&mut L, &[L::Operation]) -> L::Requested, G: Fn(&mut L, &mut L::Buffer) -> L::Response, H: Fn(&mut L, &[L::Operation], &mut L::Buffer) -> L::Response> CXOperation<InjectLayer<L, F, G, H>> for InjectOperation<L, F, G, H>
Source§impl<L: Layer + HGate, F: Fn(&mut L, &[L::Operation]) -> L::Requested, G: Fn(&mut L, &mut L::Buffer) -> L::Response, H: Fn(&mut L, &[L::Operation], &mut L::Buffer) -> L::Response> HOperation<InjectLayer<L, F, G, H>> for InjectOperation<L, F, G, H>
impl<L: Layer + HGate, F: Fn(&mut L, &[L::Operation]) -> L::Requested, G: Fn(&mut L, &mut L::Buffer) -> L::Response, H: Fn(&mut L, &[L::Operation], &mut L::Buffer) -> L::Response> HOperation<InjectLayer<L, F, G, H>> for InjectOperation<L, F, G, H>
Source§impl<L: Layer, F: Fn(&mut L, &[L::Operation]) -> L::Requested, G: Fn(&mut L, &mut L::Buffer) -> L::Response, H: Fn(&mut L, &[L::Operation], &mut L::Buffer) -> L::Response> Operation<InjectLayer<L, F, G, H>> for InjectOperation<L, F, G, H>
impl<L: Layer, F: Fn(&mut L, &[L::Operation]) -> L::Requested, G: Fn(&mut L, &mut L::Buffer) -> L::Response, H: Fn(&mut L, &[L::Operation], &mut L::Buffer) -> L::Response> Operation<InjectLayer<L, F, G, H>> for InjectOperation<L, F, G, H>
Source§impl<L: Layer + PauliGate, F: Fn(&mut L, &[L::Operation]) -> L::Requested, G: Fn(&mut L, &mut L::Buffer) -> L::Response, H: Fn(&mut L, &[L::Operation], &mut L::Buffer) -> L::Response> PauliOperation<InjectLayer<L, F, G, H>> for InjectOperation<L, F, G, H>
impl<L: Layer + PauliGate, F: Fn(&mut L, &[L::Operation]) -> L::Requested, G: Fn(&mut L, &mut L::Buffer) -> L::Response, H: Fn(&mut L, &[L::Operation], &mut L::Buffer) -> L::Response> PauliOperation<InjectLayer<L, F, G, H>> for InjectOperation<L, F, G, H>
Source§impl<L: Layer + SGate, F: Fn(&mut L, &[L::Operation]) -> L::Requested, G: Fn(&mut L, &mut L::Buffer) -> L::Response, H: Fn(&mut L, &[L::Operation], &mut L::Buffer) -> L::Response> SOperation<InjectLayer<L, F, G, H>> for InjectOperation<L, F, G, H>
impl<L: Layer + SGate, F: Fn(&mut L, &[L::Operation]) -> L::Requested, G: Fn(&mut L, &mut L::Buffer) -> L::Response, H: Fn(&mut L, &[L::Operation], &mut L::Buffer) -> L::Response> SOperation<InjectLayer<L, F, G, H>> for InjectOperation<L, F, G, H>
Auto Trait Implementations§
impl<L, F, G, H> Freeze for InjectOperation<L, F, G, H>
impl<L, F, G, H> RefUnwindSafe for InjectOperation<L, F, G, H>
impl<L, F, G, H> Send for InjectOperation<L, F, G, H>
impl<L, F, G, H> Sync for InjectOperation<L, F, G, H>
impl<L, F, G, H> Unpin for InjectOperation<L, F, G, H>
impl<L, F, G, H> UnsafeUnpin for InjectOperation<L, F, G, H>
impl<L, F, G, H> UnwindSafe for InjectOperation<L, F, G, H>
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