Struct cubing::alg::QuantumMove
source · pub struct QuantumMove {
pub family: String,
pub prefix: Option<MovePrefix>,
}
Fields§
§family: String
§prefix: Option<MovePrefix>
Implementations§
source§impl QuantumMove
impl QuantumMove
pub fn new(family: impl Into<String>, layers: Option<MovePrefix>) -> QuantumMove
Trait Implementations§
source§impl Clone for QuantumMove
impl Clone for QuantumMove
source§fn clone(&self) -> QuantumMove
fn clone(&self) -> QuantumMove
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for QuantumMove
impl Debug for QuantumMove
source§impl<'de> Deserialize<'de> for QuantumMove
impl<'de> Deserialize<'de> for QuantumMove
source§fn deserialize<D>(
deserializer: D
) -> Result<QuantumMove, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<QuantumMove, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for QuantumMove
impl Display for QuantumMove
source§impl FromStr for QuantumMove
impl FromStr for QuantumMove
§type Err = AlgParseError
type Err = AlgParseError
The associated error which can be returned from parsing.
source§fn from_str(s: &str) -> Result<QuantumMove, <QuantumMove as FromStr>::Err>
fn from_str(s: &str) -> Result<QuantumMove, <QuantumMove as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moresource§impl Hash for QuantumMove
impl Hash for QuantumMove
source§impl PartialEq for QuantumMove
impl PartialEq for QuantumMove
source§fn eq(&self, other: &QuantumMove) -> bool
fn eq(&self, other: &QuantumMove) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for QuantumMove
impl Serialize for QuantumMove
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl TryFrom<&str> for QuantumMove
impl TryFrom<&str> for QuantumMove
§type Error = AlgParseError
type Error = AlgParseError
The type returned in the event of a conversion error.
source§fn try_from(
input: &str
) -> Result<QuantumMove, <QuantumMove as TryFrom<&str>>::Error>
fn try_from( input: &str ) -> Result<QuantumMove, <QuantumMove as TryFrom<&str>>::Error>
Performs the conversion.
impl Eq for QuantumMove
impl StructuralEq for QuantumMove
impl StructuralPartialEq for QuantumMove
Auto Trait Implementations§
impl RefUnwindSafe for QuantumMove
impl Send for QuantumMove
impl Sync for QuantumMove
impl Unpin for QuantumMove
impl UnwindSafe for QuantumMove
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