pub struct RadPerSecond(pub f64);Expand description
角速度单位(弧度/秒)
表示角速度值。使用 NewType 模式提供类型安全。
Tuple Fields§
§0: f64Implementations§
Source§impl RadPerSecond
impl RadPerSecond
Sourcepub const ZERO: RadPerSecond
pub const ZERO: RadPerSecond
零角速度常量
Sourcepub const fn new(value: f64) -> RadPerSecond
pub const fn new(value: f64) -> RadPerSecond
创建新的角速度值
Sourcepub fn from_rad_per_sec(value: f64) -> RadPerSecond
pub fn from_rad_per_sec(value: f64) -> RadPerSecond
从弧度/秒创建
Sourcepub fn abs(self) -> RadPerSecond
pub fn abs(self) -> RadPerSecond
取绝对值
Sourcepub fn clamp(self, min: RadPerSecond, max: RadPerSecond) -> RadPerSecond
pub fn clamp(self, min: RadPerSecond, max: RadPerSecond) -> RadPerSecond
限制范围
Trait Implementations§
Source§impl Add for RadPerSecond
impl Add for RadPerSecond
Source§type Output = RadPerSecond
type Output = RadPerSecond
The resulting type after applying the
+ operator.Source§fn add(self, rhs: RadPerSecond) -> RadPerSecond
fn add(self, rhs: RadPerSecond) -> RadPerSecond
Performs the
+ operation. Read moreSource§impl AddAssign for RadPerSecond
impl AddAssign for RadPerSecond
Source§fn add_assign(&mut self, rhs: RadPerSecond)
fn add_assign(&mut self, rhs: RadPerSecond)
Performs the
+= operation. Read moreSource§impl Clone for RadPerSecond
impl Clone for RadPerSecond
Source§fn clone(&self) -> RadPerSecond
fn clone(&self) -> RadPerSecond
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RadPerSecond
impl Debug for RadPerSecond
Source§impl Display for RadPerSecond
impl Display for RadPerSecond
Source§impl Div<Duration> for RadPerSecond
impl Div<Duration> for RadPerSecond
Source§impl Div<f64> for RadPerSecond
impl Div<f64> for RadPerSecond
Source§type Output = RadPerSecond
type Output = RadPerSecond
The resulting type after applying the
/ operator.Source§impl Div for RadPerSecond
impl Div for RadPerSecond
Source§impl DivAssign<f64> for RadPerSecond
impl DivAssign<f64> for RadPerSecond
Source§fn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
Performs the
/= operation. Read moreSource§impl Mul<f64> for RadPerSecond
impl Mul<f64> for RadPerSecond
Source§type Output = RadPerSecond
type Output = RadPerSecond
The resulting type after applying the
* operator.Source§impl MulAssign<f64> for RadPerSecond
impl MulAssign<f64> for RadPerSecond
Source§fn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the
*= operation. Read moreSource§impl Neg for RadPerSecond
impl Neg for RadPerSecond
Source§type Output = RadPerSecond
type Output = RadPerSecond
The resulting type after applying the
- operator.Source§fn neg(self) -> RadPerSecond
fn neg(self) -> RadPerSecond
Performs the unary
- operation. Read moreSource§impl PartialEq for RadPerSecond
impl PartialEq for RadPerSecond
Source§impl PartialOrd for RadPerSecond
impl PartialOrd for RadPerSecond
Source§impl Sub for RadPerSecond
impl Sub for RadPerSecond
Source§type Output = RadPerSecond
type Output = RadPerSecond
The resulting type after applying the
- operator.Source§fn sub(self, rhs: RadPerSecond) -> RadPerSecond
fn sub(self, rhs: RadPerSecond) -> RadPerSecond
Performs the
- operation. Read moreSource§impl SubAssign for RadPerSecond
impl SubAssign for RadPerSecond
Source§fn sub_assign(&mut self, rhs: RadPerSecond)
fn sub_assign(&mut self, rhs: RadPerSecond)
Performs the
-= operation. Read moreimpl Copy for RadPerSecond
impl StructuralPartialEq for RadPerSecond
Auto Trait Implementations§
impl Freeze for RadPerSecond
impl RefUnwindSafe for RadPerSecond
impl Send for RadPerSecond
impl Sync for RadPerSecond
impl Unpin for RadPerSecond
impl UnwindSafe for RadPerSecond
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more