pub struct Date(/* private fields */);Implementations§
Source§impl Date
impl Date
pub fn type_id() -> TypeId
pub fn new_at_in(at: AbsTime, allocator: Option<&Allocator>) -> Option<R<Self>>
pub fn new_at(at: AbsTime) -> R<Self>
pub fn new() -> R<Self>
pub fn now() -> R<Self>
pub fn abs_time(&self) -> AbsTime
pub fn time_interval_since_date(&self, other_date: &Date) -> TimeInterval
pub unsafe fn compare( &self, other_date: &Date, context: *mut c_void, ) -> ComparisonResult
pub fn as_ns(&self) -> &Date
Methods from Deref<Target = Type>§
pub fn get_type_id(&self) -> TypeId
pub unsafe fn as_type_ptr(&self) -> *const c_void
pub fn as_type_ref(&self) -> &Type
pub fn is_tagged_ptr(&self) -> bool
pub fn try_as_number(&self) -> Option<&Number>
pub fn try_as_string(&self) -> Option<&String>
pub fn show(&self)
pub fn allocator(&self) -> Option<&Allocator>
pub fn retain_count(&self) -> isize
Sourcepub fn equal(&self, other: &Type) -> bool
pub fn equal(&self, other: &Type) -> bool
use cidre::cf;
let n1 = cf::Number::from_i8(4);
let n2 = cf::Number::from_i32(4);
let n3 = cf::Number::from_f64(3.0);
assert!(n1.equal(&n2));
assert_eq!(false, n1.equal(&n3));pub fn hash(&self) -> usize
pub fn desc(&self) -> R<String>
Trait Implementations§
impl Eq for Date
Auto Trait Implementations§
impl !Send for Date
impl !Sync for Date
impl Freeze for Date
impl RefUnwindSafe for Date
impl Unpin for Date
impl UnsafeUnpin for Date
impl UnwindSafe for Date
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