pub struct Angle(pub u8);
Tuple Fields§
§0: u8
Implementations§
Source§impl Angle
impl Angle
pub fn from_degrees(degrees: f32) -> Self
pub fn from_radians(radians: f32) -> Self
pub fn to_degrees(&self) -> f32
pub fn to_radians(&self) -> f32
Trait Implementations§
Source§impl ProtocolRead for Angle
impl ProtocolRead for Angle
Source§impl ProtocolWrite for Angle
impl ProtocolWrite for Angle
impl Copy for Angle
impl Eq for Angle
impl StructuralPartialEq for Angle
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