pub struct RelativeOptions { /* private fields */ }Expand description
Options of I18n::tdr_with, Intl.RelativeTimeFormat’s:
numeric (always by default, auto says yesterday / now) and
style (long by default, short, narrow).
use i18n_next::RelativeOptions;
let o = RelativeOptions::default().auto().short();
assert_ne!(o, RelativeOptions::default());Implementations§
Trait Implementations§
Source§impl Clone for RelativeOptions
impl Clone for RelativeOptions
impl Copy for RelativeOptions
Source§impl Debug for RelativeOptions
impl Debug for RelativeOptions
Source§impl Default for RelativeOptions
impl Default for RelativeOptions
impl Eq for RelativeOptions
Source§impl Hash for RelativeOptions
impl Hash for RelativeOptions
Source§impl PartialEq for RelativeOptions
impl PartialEq for RelativeOptions
impl StructuralPartialEq for RelativeOptions
Auto Trait Implementations§
impl Forget for RelativeOptions
impl Freeze for RelativeOptions
impl Move for RelativeOptions
impl RefUnwindSafe for RelativeOptions
impl Send for RelativeOptions
impl Sync for RelativeOptions
impl Unpin for RelativeOptions
impl UnsafeUnpin for RelativeOptions
impl UnwindSafe for RelativeOptions
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