pub struct Angle(/* private fields */);Expand description
A wrapper struct representing a rotation angle in steps of 1/256 of a full turn.
The Angle struct provides a convenient way to work with rotation angles, where each step
represents 1/256 of a full turn. This allows for precise control over rotation measurements.
§Note
The range of valid values for an Angle instance is from 0 to 255, representing a full
rotation (0 degrees to 360 degrees) in steps of 1/256 of a full turn.
Trait Implementations§
source§impl ImportantFunctions for Angle
impl ImportantFunctions for Angle
§type ReturnType = <Angle as ImportantFunctions>::InputType
type ReturnType = <Angle as ImportantFunctions>::InputType
The type returned by
get_valuesource§fn get_value(&self) -> Self::ReturnType
fn get_value(&self) -> Self::ReturnType
A function that returns the hold data
Auto Trait Implementations§
impl Freeze for Angle
impl RefUnwindSafe for Angle
impl Send for Angle
impl Sync for Angle
impl Unpin for Angle
impl UnwindSafe for Angle
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