Enum roqoqo::operations::GateOperation
source · [−]pub enum GateOperation {
Show 38 variants
SingleQubitGate(SingleQubitGate),
RotateZ(RotateZ),
RotateX(RotateX),
RotateY(RotateY),
PauliX(PauliX),
PauliY(PauliY),
PauliZ(PauliZ),
SqrtPauliX(SqrtPauliX),
InvSqrtPauliX(InvSqrtPauliX),
Hadamard(Hadamard),
SGate(SGate),
TGate(TGate),
PhaseShiftState1(PhaseShiftState1),
PhaseShiftState0(PhaseShiftState0),
RotateAroundSphericalAxis(RotateAroundSphericalAxis),
CNOT(CNOT),
SWAP(SWAP),
ISwap(ISwap),
FSwap(FSwap),
SqrtISwap(SqrtISwap),
InvSqrtISwap(InvSqrtISwap),
XY(XY),
ControlledPhaseShift(ControlledPhaseShift),
ControlledPauliY(ControlledPauliY),
ControlledPauliZ(ControlledPauliZ),
MolmerSorensenXX(MolmerSorensenXX),
VariableMSXX(VariableMSXX),
GivensRotation(GivensRotation),
GivensRotationLittleEndian(GivensRotationLittleEndian),
Qsim(Qsim),
Fsim(Fsim),
SpinInteraction(SpinInteraction),
Bogoliubov(Bogoliubov),
PMInteraction(PMInteraction),
ComplexPMInteraction(ComplexPMInteraction),
PhaseShiftedControlledZ(PhaseShiftedControlledZ),
MultiQubitMS(MultiQubitMS),
MultiQubitZZ(MultiQubitZZ),
}
Expand description
Enum of all Operations implementing OperateGate
Variants
SingleQubitGate(SingleQubitGate)
Variant for SingleQubitGate
RotateZ(RotateZ)
Variant for RotateZ
RotateX(RotateX)
Variant for RotateX
RotateY(RotateY)
Variant for RotateY
PauliX(PauliX)
Variant for PauliX
PauliY(PauliY)
Variant for PauliY
PauliZ(PauliZ)
Variant for PauliZ
SqrtPauliX(SqrtPauliX)
Variant for SqrtPauliX
InvSqrtPauliX(InvSqrtPauliX)
Variant for InvSqrtPauliX
Hadamard(Hadamard)
Variant for Hadamard
SGate(SGate)
Variant for SGate
TGate(TGate)
Variant for TGate
PhaseShiftState1(PhaseShiftState1)
Variant for PhaseShiftState1
PhaseShiftState0(PhaseShiftState0)
Variant for PhaseShiftState0
RotateAroundSphericalAxis(RotateAroundSphericalAxis)
Variant for RotateAroundSphericalAxis
CNOT(CNOT)
Variant for CNOT
SWAP(SWAP)
Variant for SWAP
ISwap(ISwap)
Variant for ISwap
FSwap(FSwap)
Variant for FSwap
SqrtISwap(SqrtISwap)
Variant for SqrtISwap
InvSqrtISwap(InvSqrtISwap)
Variant for InvSqrtISwap
XY(XY)
Variant for XY
ControlledPhaseShift(ControlledPhaseShift)
Variant for ControlledPhaseShift
ControlledPauliY(ControlledPauliY)
Variant for ControlledPauliY
ControlledPauliZ(ControlledPauliZ)
Variant for ControlledPauliZ
MolmerSorensenXX(MolmerSorensenXX)
Variant for MolmerSorensenXX
VariableMSXX(VariableMSXX)
Variant for VariableMSXX
GivensRotation(GivensRotation)
Variant for GivensRotation
GivensRotationLittleEndian(GivensRotationLittleEndian)
Variant for GivensRotationLittleEndian
Qsim(Qsim)
Variant for Qsim
Fsim(Fsim)
Variant for Fsim
SpinInteraction(SpinInteraction)
Variant for SpinInteraction
Bogoliubov(Bogoliubov)
Variant for Bogoliubov
PMInteraction(PMInteraction)
Variant for PMInteraction
ComplexPMInteraction(ComplexPMInteraction)
Variant for ComplexPMInteraction
PhaseShiftedControlledZ(PhaseShiftedControlledZ)
Variant for PhaseShiftedControlledZ
MultiQubitMS(MultiQubitMS)
Variant for MultiQubitMS
MultiQubitZZ(MultiQubitZZ)
Variant for MultiQubitZZ
Trait Implementations
sourceimpl Clone for GateOperation
impl Clone for GateOperation
sourcefn clone(&self) -> GateOperation
fn clone(&self) -> GateOperation
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 GateOperation
impl Debug for GateOperation
sourceimpl<'de> Deserialize<'de> for GateOperation
impl<'de> Deserialize<'de> for GateOperation
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<Bogoliubov> for GateOperation
impl From<Bogoliubov> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: Bogoliubov) -> Self
fn from(v: Bogoliubov) -> Self
Performs the conversion.
sourceimpl From<CNOT> for GateOperation
impl From<CNOT> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourceimpl From<ComplexPMInteraction> for GateOperation
impl From<ComplexPMInteraction> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: ComplexPMInteraction) -> Self
fn from(v: ComplexPMInteraction) -> Self
Performs the conversion.
sourceimpl From<ControlledPauliY> for GateOperation
impl From<ControlledPauliY> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: ControlledPauliY) -> Self
fn from(v: ControlledPauliY) -> Self
Performs the conversion.
sourceimpl From<ControlledPauliZ> for GateOperation
impl From<ControlledPauliZ> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: ControlledPauliZ) -> Self
fn from(v: ControlledPauliZ) -> Self
Performs the conversion.
sourceimpl From<ControlledPhaseShift> for GateOperation
impl From<ControlledPhaseShift> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: ControlledPhaseShift) -> Self
fn from(v: ControlledPhaseShift) -> Self
Performs the conversion.
sourceimpl From<FSwap> for GateOperation
impl From<FSwap> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourceimpl From<Fsim> for GateOperation
impl From<Fsim> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourceimpl From<GateOperation> for Operation
impl From<GateOperation> for Operation
sourcefn from(op: GateOperation) -> Self
fn from(op: GateOperation) -> Self
Performs the conversion.
sourceimpl From<GivensRotation> for GateOperation
impl From<GivensRotation> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: GivensRotation) -> Self
fn from(v: GivensRotation) -> Self
Performs the conversion.
sourceimpl From<GivensRotationLittleEndian> for GateOperation
impl From<GivensRotationLittleEndian> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: GivensRotationLittleEndian) -> Self
fn from(v: GivensRotationLittleEndian) -> Self
Performs the conversion.
sourceimpl From<Hadamard> for GateOperation
impl From<Hadamard> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourceimpl From<ISwap> for GateOperation
impl From<ISwap> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourceimpl From<InvSqrtISwap> for GateOperation
impl From<InvSqrtISwap> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: InvSqrtISwap) -> Self
fn from(v: InvSqrtISwap) -> Self
Performs the conversion.
sourceimpl From<InvSqrtPauliX> for GateOperation
impl From<InvSqrtPauliX> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: InvSqrtPauliX) -> Self
fn from(v: InvSqrtPauliX) -> Self
Performs the conversion.
sourceimpl From<MolmerSorensenXX> for GateOperation
impl From<MolmerSorensenXX> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: MolmerSorensenXX) -> Self
fn from(v: MolmerSorensenXX) -> Self
Performs the conversion.
sourceimpl From<MultiQubitMS> for GateOperation
impl From<MultiQubitMS> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: MultiQubitMS) -> Self
fn from(v: MultiQubitMS) -> Self
Performs the conversion.
sourceimpl From<MultiQubitZZ> for GateOperation
impl From<MultiQubitZZ> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: MultiQubitZZ) -> Self
fn from(v: MultiQubitZZ) -> Self
Performs the conversion.
sourceimpl From<PMInteraction> for GateOperation
impl From<PMInteraction> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: PMInteraction) -> Self
fn from(v: PMInteraction) -> Self
Performs the conversion.
sourceimpl From<PauliX> for GateOperation
impl From<PauliX> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourceimpl From<PauliY> for GateOperation
impl From<PauliY> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourceimpl From<PauliZ> for GateOperation
impl From<PauliZ> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourceimpl From<PhaseShiftState0> for GateOperation
impl From<PhaseShiftState0> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: PhaseShiftState0) -> Self
fn from(v: PhaseShiftState0) -> Self
Performs the conversion.
sourceimpl From<PhaseShiftState1> for GateOperation
impl From<PhaseShiftState1> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: PhaseShiftState1) -> Self
fn from(v: PhaseShiftState1) -> Self
Performs the conversion.
sourceimpl From<PhaseShiftedControlledZ> for GateOperation
impl From<PhaseShiftedControlledZ> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: PhaseShiftedControlledZ) -> Self
fn from(v: PhaseShiftedControlledZ) -> Self
Performs the conversion.
sourceimpl From<Qsim> for GateOperation
impl From<Qsim> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourceimpl From<RotateAroundSphericalAxis> for GateOperation
impl From<RotateAroundSphericalAxis> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: RotateAroundSphericalAxis) -> Self
fn from(v: RotateAroundSphericalAxis) -> Self
Performs the conversion.
sourceimpl From<RotateX> for GateOperation
impl From<RotateX> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourceimpl From<RotateY> for GateOperation
impl From<RotateY> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourceimpl From<RotateZ> for GateOperation
impl From<RotateZ> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourceimpl From<SGate> for GateOperation
impl From<SGate> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourceimpl From<SWAP> for GateOperation
impl From<SWAP> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourceimpl From<SingleQubitGate> for GateOperation
impl From<SingleQubitGate> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: SingleQubitGate) -> Self
fn from(v: SingleQubitGate) -> Self
Performs the conversion.
sourceimpl From<SpinInteraction> for GateOperation
impl From<SpinInteraction> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: SpinInteraction) -> Self
fn from(v: SpinInteraction) -> Self
Performs the conversion.
sourceimpl From<SqrtISwap> for GateOperation
impl From<SqrtISwap> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourceimpl From<SqrtPauliX> for GateOperation
impl From<SqrtPauliX> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: SqrtPauliX) -> Self
fn from(v: SqrtPauliX) -> Self
Performs the conversion.
sourceimpl From<TGate> for GateOperation
impl From<TGate> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourceimpl From<VariableMSXX> for GateOperation
impl From<VariableMSXX> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: VariableMSXX) -> Self
fn from(v: VariableMSXX) -> Self
Performs the conversion.
sourceimpl From<XY> for GateOperation
impl From<XY> for GateOperation
Implements the From trait $\textit{from}$ this Operation.
sourceimpl InvolveQubits for GateOperation
impl InvolveQubits for GateOperation
Implements InvolveQubits trait for the qubits involved in this Operation.
sourcefn involved_qubits(&self) -> InvolvedQubits
fn involved_qubits(&self) -> InvolvedQubits
Returns a list of all involved qubits.
sourceimpl Operate for GateOperation
impl Operate for GateOperation
Implements the universal basic trait Operate for this Operation.
sourceimpl OperateGate for GateOperation
impl OperateGate for GateOperation
sourcefn unitary_matrix(&self) -> Result<Array2<Complex64>, RoqoqoError>
fn unitary_matrix(&self) -> Result<Array2<Complex64>, RoqoqoError>
Returns unitary matrix of the gate.
sourceimpl PartialEq<GateOperation> for GateOperation
impl PartialEq<GateOperation> for GateOperation
sourcefn eq(&self, other: &GateOperation) -> bool
fn eq(&self, other: &GateOperation) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GateOperation) -> bool
fn ne(&self, other: &GateOperation) -> bool
This method tests for !=
.
sourceimpl Serialize for GateOperation
impl Serialize for GateOperation
sourceimpl Substitute for GateOperation
impl Substitute for GateOperation
Implements Substitute trait allowing to replace symbolic parameters and to perform qubit mappings.
sourcefn substitute_parameters(
&self,
calculator: &mut Calculator
) -> Result<Self, RoqoqoError>
fn substitute_parameters(
&self,
calculator: &mut Calculator
) -> Result<Self, RoqoqoError>
Substitutes symbolic parameters in clone of the operation.
sourcefn remap_qubits(
&self,
mapping: &HashMap<usize, usize>
) -> Result<Self, RoqoqoError>
fn remap_qubits(
&self,
mapping: &HashMap<usize, usize>
) -> Result<Self, RoqoqoError>
Remaps the qubits in clone of the operation.
sourceimpl TryFrom<&'_ Operation> for GateOperation
impl TryFrom<&'_ Operation> for GateOperation
sourceimpl TryFrom<GateOperation> for SingleQubitGate
impl TryFrom<GateOperation> for SingleQubitGate
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for RotateZ
impl TryFrom<GateOperation> for RotateZ
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for SGate
impl TryFrom<GateOperation> for SGate
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for TGate
impl TryFrom<GateOperation> for TGate
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for PhaseShiftState1
impl TryFrom<GateOperation> for PhaseShiftState1
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for PhaseShiftState0
impl TryFrom<GateOperation> for PhaseShiftState0
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for RotateAroundSphericalAxis
impl TryFrom<GateOperation> for RotateAroundSphericalAxis
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for CNOT
impl TryFrom<GateOperation> for CNOT
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for SWAP
impl TryFrom<GateOperation> for SWAP
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for ISwap
impl TryFrom<GateOperation> for ISwap
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for FSwap
impl TryFrom<GateOperation> for FSwap
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for SqrtISwap
impl TryFrom<GateOperation> for SqrtISwap
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for RotateX
impl TryFrom<GateOperation> for RotateX
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for InvSqrtISwap
impl TryFrom<GateOperation> for InvSqrtISwap
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for XY
impl TryFrom<GateOperation> for XY
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for ControlledPhaseShift
impl TryFrom<GateOperation> for ControlledPhaseShift
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for ControlledPauliY
impl TryFrom<GateOperation> for ControlledPauliY
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for ControlledPauliZ
impl TryFrom<GateOperation> for ControlledPauliZ
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for MolmerSorensenXX
impl TryFrom<GateOperation> for MolmerSorensenXX
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for VariableMSXX
impl TryFrom<GateOperation> for VariableMSXX
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for GivensRotation
impl TryFrom<GateOperation> for GivensRotation
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for GivensRotationLittleEndian
impl TryFrom<GateOperation> for GivensRotationLittleEndian
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for Qsim
impl TryFrom<GateOperation> for Qsim
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for RotateY
impl TryFrom<GateOperation> for RotateY
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for Fsim
impl TryFrom<GateOperation> for Fsim
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for SpinInteraction
impl TryFrom<GateOperation> for SpinInteraction
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for Bogoliubov
impl TryFrom<GateOperation> for Bogoliubov
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for PMInteraction
impl TryFrom<GateOperation> for PMInteraction
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for ComplexPMInteraction
impl TryFrom<GateOperation> for ComplexPMInteraction
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for PhaseShiftedControlledZ
impl TryFrom<GateOperation> for PhaseShiftedControlledZ
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for MultiQubitMS
impl TryFrom<GateOperation> for MultiQubitMS
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for MultiQubitZZ
impl TryFrom<GateOperation> for MultiQubitZZ
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for PauliX
impl TryFrom<GateOperation> for PauliX
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for PauliY
impl TryFrom<GateOperation> for PauliY
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for PauliZ
impl TryFrom<GateOperation> for PauliZ
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for SqrtPauliX
impl TryFrom<GateOperation> for SqrtPauliX
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for InvSqrtPauliX
impl TryFrom<GateOperation> for InvSqrtPauliX
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<GateOperation> for Hadamard
impl TryFrom<GateOperation> for Hadamard
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for GateOperation
impl TryFrom<Operation> for GateOperation
impl StructuralPartialEq for GateOperation
Auto Trait Implementations
impl RefUnwindSafe for GateOperation
impl Send for GateOperation
impl Sync for GateOperation
impl Unpin for GateOperation
impl UnwindSafe for GateOperation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more