pub enum RtcBase {
Utc,
Localtime,
Datetime(QDateTime),
}Variants§
Utc
Use the host UTC time.
Localtime
Use the host local time.
Datetime(QDateTime)
Start from a specific date/time.
Trait Implementations§
Source§impl Arbitrary for RtcBase
impl Arbitrary for RtcBase
Source§type Parameters = <QDateTime as Arbitrary>::Parameters
type Parameters = <QDateTime as Arbitrary>::Parameters
The type of parameters that
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = TupleUnion<((u32, Arc<fn() -> RtcBase>), (u32, Arc<fn() -> RtcBase>), (u32, Arc<Map<<QDateTime as Arbitrary>::Strategy, fn(QDateTime) -> RtcBase>>))>
type Strategy = TupleUnion<((u32, Arc<fn() -> RtcBase>), (u32, Arc<fn() -> RtcBase>), (u32, Arc<Map<<QDateTime as Arbitrary>::Strategy, fn(QDateTime) -> RtcBase>>))>
The type of
Strategy used to generate values of type Self.Source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
Source§impl Ord for RtcBase
impl Ord for RtcBase
Source§impl PartialOrd for RtcBase
impl PartialOrd for RtcBase
impl Eq for RtcBase
impl StructuralPartialEq for RtcBase
Auto Trait Implementations§
impl Freeze for RtcBase
impl RefUnwindSafe for RtcBase
impl Send for RtcBase
impl Sync for RtcBase
impl Unpin for RtcBase
impl UnsafeUnpin for RtcBase
impl UnwindSafe for RtcBase
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