pub struct Period { /* private fields */ }Trait Implementations§
Source§impl Object for Period
impl Object for Period
Source§fn render(self: &Arc<Self>, f: &mut Formatter<'_>) -> Result
fn render(self: &Arc<Self>, f: &mut Formatter<'_>) -> Result
ISO 8601 interval notation, so a Period dropped into SQL by mistake is easy to spot.
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 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 moreSource§fn call(
self: &Arc<Self>,
state: &State<'_, '_>,
args: &[Value],
) -> Result<Value, Error>
fn call( self: &Arc<Self>, state: &State<'_, '_>, args: &[Value], ) -> Result<Value, Error>
The engine calls this to invoke the object itself. Read more
Auto Trait Implementations§
impl Freeze for Period
impl RefUnwindSafe for Period
impl Send for Period
impl Sync for Period
impl Unpin for Period
impl UnsafeUnpin for Period
impl UnwindSafe for Period
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