pub struct Unit<V>(/* private fields */);Expand description
A Vector with magnitude 1.0.
Implementations§
Trait Implementations§
Source§impl<'de, V> Deserialize<'de> for Unit<V>where
V: Deserialize<'de>,
impl<'de, V> Deserialize<'de> for Unit<V>where
V: Deserialize<'de>,
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<const N: usize> TryFrom<[f64; N]> for Unit<Cartesian<N>>
impl<const N: usize> TryFrom<[f64; N]> for Unit<Cartesian<N>>
impl<V: Copy> Copy for Unit<V>
impl<V> StructuralPartialEq for Unit<V>
Auto Trait Implementations§
impl<V> Freeze for Unit<V>where
V: Freeze,
impl<V> RefUnwindSafe for Unit<V>where
V: RefUnwindSafe,
impl<V> Send for Unit<V>where
V: Send,
impl<V> Sync for Unit<V>where
V: Sync,
impl<V> Unpin for Unit<V>where
V: Unpin,
impl<V> UnsafeUnpin for Unit<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for Unit<V>where
V: 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