pub struct DateTime { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Object for DateTime
impl Object for DateTime
Source§fn repr(self: &Arc<Self>) -> ObjectRepr
fn repr(self: &Arc<Self>) -> ObjectRepr
Indicates the natural representation of an object. Read more
Source§fn get_value(self: &Arc<Self>, key: &Value) -> Option<Value>
fn get_value(self: &Arc<Self>, key: &Value) -> Option<Value>
Given a key, looks up the associated value.
Source§fn call_method(
self: &Arc<Self>,
_: &State<'_, '_>,
method: &str,
args: &[Value],
) -> Result<Value, Error>
fn call_method( self: &Arc<Self>, _: &State<'_, '_>, method: &str, args: &[Value], ) -> Result<Value, Error>
The engine calls this to invoke a method on the object. Read more
Source§fn render(self: &Arc<Self>, f: &mut Formatter<'_>) -> Result
fn render(self: &Arc<Self>, f: &mut Formatter<'_>) -> Result
Formats the object for stringification. Read more
Source§fn get_value_by_str(self: &Arc<Self>, key: &str) -> Option<Value>
fn get_value_by_str(self: &Arc<Self>, key: &str) -> Option<Value>
Given a string key, looks up the associated value. Read more
Source§fn enumerator_len(self: &Arc<Self>) -> Option<usize>
fn enumerator_len(self: &Arc<Self>) -> Option<usize>
Returns the length of the enumerator. Read more
Source§fn is_true(self: &Arc<Self>) -> bool
fn is_true(self: &Arc<Self>) -> bool
Returns
true if this object is considered true for if conditions. Read moreAuto Trait Implementations§
impl Freeze for DateTime
impl RefUnwindSafe for DateTime
impl Send for DateTime
impl Sync for DateTime
impl Unpin for DateTime
impl UnsafeUnpin for DateTime
impl UnwindSafe for DateTime
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ObjectExt for T
impl<T> ObjectExt for T
Source§fn mapped_enumerator<F>(self: &Arc<Self>, maker: F) -> Enumerator
fn mapped_enumerator<F>(self: &Arc<Self>, maker: F) -> Enumerator
Creates a new iterator enumeration that projects into the given object. Read more
Source§fn mapped_key_value_enumerator<F>(self: &Arc<Self>, maker: F) -> Enumerator
fn mapped_key_value_enumerator<F>(self: &Arc<Self>, maker: F) -> Enumerator
Creates a new key-value pair enumerator that projects into the given object. Read more
Source§fn mapped_rev_enumerator<F>(self: &Arc<Self>, maker: F) -> Enumerator
fn mapped_rev_enumerator<F>(self: &Arc<Self>, maker: F) -> Enumerator
Creates a new reversible iterator enumeration that projects into the given object. Read more
Source§fn mapped_rev_key_value_enumerator<F>(self: &Arc<Self>, maker: F) -> Enumerator
fn mapped_rev_key_value_enumerator<F>(self: &Arc<Self>, maker: F) -> Enumerator
Creates reversible key-value pair enumeration that projects into the given object. Read more