pub struct UsdMicros(/* private fields */);Expand description
One micro-USD. Decimal price lists convert at the single accounting entry point (gateway::cost); decisions never touch floats.
Implementations§
Source§impl UsdMicros
impl UsdMicros
pub const fn new(value: u64) -> UsdMicros
pub const fn get(self) -> u64
Sourcepub fn checked_add(self, other: UsdMicros) -> Option<UsdMicros>
pub fn checked_add(self, other: UsdMicros) -> Option<UsdMicros>
Overflow is None; the caller owns the verdict, which is
E_INVALID_ARGS at every site that has one. Choosing an
error story here would force it on every caller.
Trait Implementations§
impl Copy for UsdMicros
Source§impl<'de> Deserialize<'de> for UsdMicros
impl<'de> Deserialize<'de> for UsdMicros
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
impl Eq for UsdMicros
Source§impl Ord for UsdMicros
impl Ord for UsdMicros
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for UsdMicros
impl PartialOrd for UsdMicros
impl StructuralPartialEq for UsdMicros
Auto Trait Implementations§
impl Freeze for UsdMicros
impl RefUnwindSafe for UsdMicros
impl Send for UsdMicros
impl Sync for UsdMicros
impl Unpin for UsdMicros
impl UnsafeUnpin for UsdMicros
impl UnwindSafe for UsdMicros
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