Struct zng_layout::unit::euclid::Angle
source · pub struct Angle<T> {
pub radians: T,
}Expand description
An angle in radians
Fields§
§radians: TImplementations§
source§impl<T> Angle<T>where
T: Trig,
impl<T> Angle<T>where
T: Trig,
pub fn degrees(deg: T) -> Angle<T>
pub fn to_degrees(self) -> T
source§impl<T> Angle<T>where
T: Sub<Output = T> + Rem<Output = T> + Add<Output = T> + Zero + FloatConst + PartialOrd + Copy,
impl<T> Angle<T>where
T: Sub<Output = T> + Rem<Output = T> + Add<Output = T> + Zero + FloatConst + PartialOrd + Copy,
source§impl<T> Angle<T>where
T: FloatConst + Add<Output = T>,
impl<T> Angle<T>where
T: FloatConst + Add<Output = T>,
Trait Implementations§
source§impl<T> AddAssign for Angle<T>where
T: AddAssign,
impl<T> AddAssign for Angle<T>where
T: AddAssign,
source§fn add_assign(&mut self, other: Angle<T>)
fn add_assign(&mut self, other: Angle<T>)
Performs the
+= operation. Read moresource§impl<T> ApproxEq<T> for Angle<T>where
T: ApproxEq<T>,
impl<T> ApproxEq<T> for Angle<T>where
T: ApproxEq<T>,
source§fn approx_epsilon() -> T
fn approx_epsilon() -> T
Default epsilon value
source§impl<'de, T> Deserialize<'de> for Angle<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Angle<T>where
T: Deserialize<'de>,
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Angle<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Angle<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T> DivAssign<T> for Angle<T>where
T: DivAssign,
impl<T> DivAssign<T> for Angle<T>where
T: DivAssign,
source§fn div_assign(&mut self, factor: T)
fn div_assign(&mut self, factor: T)
Performs the
/= operation. Read moresource§impl<T> MulAssign<T> for Angle<T>where
T: MulAssign,
impl<T> MulAssign<T> for Angle<T>where
T: MulAssign,
source§fn mul_assign(&mut self, factor: T)
fn mul_assign(&mut self, factor: T)
Performs the
*= operation. Read moresource§impl<T> PartialEq for Angle<T>where
T: PartialEq,
impl<T> PartialEq for Angle<T>where
T: PartialEq,
source§impl<T> PartialOrd for Angle<T>where
T: PartialOrd,
impl<T> PartialOrd for Angle<T>where
T: PartialOrd,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl<T> Serialize for Angle<T>where
T: Serialize,
impl<T> Serialize for Angle<T>where
T: Serialize,
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<T> SubAssign for Angle<T>where
T: SubAssign,
impl<T> SubAssign for Angle<T>where
T: SubAssign,
source§fn sub_assign(&mut self, other: Angle<T>)
fn sub_assign(&mut self, other: Angle<T>)
Performs the
-= operation. Read moreimpl<T> Copy for Angle<T>where
T: Copy,
impl<T> Eq for Angle<T>where
T: Eq,
impl<T> Pod for Angle<T>where
T: Pod,
impl<T> StructuralPartialEq for Angle<T>
Auto Trait Implementations§
impl<T> Freeze for Angle<T>where
T: Freeze,
impl<T> RefUnwindSafe for Angle<T>where
T: RefUnwindSafe,
impl<T> Send for Angle<T>where
T: Send,
impl<T> Sync for Angle<T>where
T: Sync,
impl<T> Unpin for Angle<T>where
T: Unpin,
impl<T> UnwindSafe for Angle<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> AnyVarValue for Twhere
T: VarValue,
impl<T> AnyVarValue for Twhere
T: VarValue,
source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Access to mut
dyn Any methods.source§fn clone_boxed(&self) -> Box<dyn AnyVarValue>
fn clone_boxed(&self) -> Box<dyn AnyVarValue>
Clone the value.
source§fn clone_boxed_var(&self) -> Box<dyn AnyVar>
fn clone_boxed_var(&self) -> Box<dyn AnyVar>
Clone the value into a new boxed
LocalVar<Self>.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
source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.