pub enum RotationStateRecordItem<S: PrecisionSettings> {
Angle(<<Tensor<3> as Module>::Record as Record>::Item<S>),
Quaternion(<<Tensor<4> as Module>::Record as Record>::Item<S>),
}Expand description
The record item type for the module.
Variants§
Angle(<<Tensor<3> as Module>::Record as Record>::Item<S>)
Variant to be serialized.
Quaternion(<<Tensor<4> as Module>::Record as Record>::Item<S>)
Variant to be serialized.
Trait Implementations§
Source§impl<S: PrecisionSettings> Clone for RotationStateRecordItem<S>
impl<S: PrecisionSettings> Clone for RotationStateRecordItem<S>
Source§impl<'de, S: PrecisionSettings> Deserialize<'de> for RotationStateRecordItem<S>where
<<Tensor<3> as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
<<Tensor<4> as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
impl<'de, S: PrecisionSettings> Deserialize<'de> for RotationStateRecordItem<S>where
<<Tensor<3> as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
<<Tensor<4> as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
Source§fn 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
Source§impl<S: PrecisionSettings> Serialize for RotationStateRecordItem<S>where
<<Tensor<3> as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
<<Tensor<4> as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
impl<S: PrecisionSettings> Serialize for RotationStateRecordItem<S>where
<<Tensor<3> as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
<<Tensor<4> as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
Auto Trait Implementations§
impl<S> Freeze for RotationStateRecordItem<S>
impl<S> RefUnwindSafe for RotationStateRecordItem<S>
impl<S> Send for RotationStateRecordItem<S>
impl<S> Sync for RotationStateRecordItem<S>
impl<S> Unpin for RotationStateRecordItem<S>
impl<S> UnsafeUnpin for RotationStateRecordItem<S>
impl<S> UnwindSafe for RotationStateRecordItem<S>
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