#[repr(C)]pub struct RoundingOptions {
pub largest_unit: DiplomatOption<Unit>,
pub smallest_unit: DiplomatOption<Unit>,
pub rounding_mode: DiplomatOption<RoundingMode>,
pub increment: DiplomatOption<u32>,
}Fields§
§largest_unit: DiplomatOption<Unit>§smallest_unit: DiplomatOption<Unit>§rounding_mode: DiplomatOption<RoundingMode>§increment: DiplomatOption<u32>Trait Implementations§
Source§impl TryFrom<RoundingOptions> for RoundingOptions
impl TryFrom<RoundingOptions> for RoundingOptions
Source§type Error = TemporalError
type Error = TemporalError
The type returned in the event of a conversion error.
Source§fn try_from(other: RoundingOptions) -> Result<Self, TemporalError>
fn try_from(other: RoundingOptions) -> Result<Self, TemporalError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for RoundingOptions
impl RefUnwindSafe for RoundingOptions
impl Send for RoundingOptions
impl Sync for RoundingOptions
impl Unpin for RoundingOptions
impl UnsafeUnpin for RoundingOptions
impl UnwindSafe for RoundingOptions
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