pub enum NullsPosition {
First,
Last,
}Expand description
Where NULLs sort.
PHP: Utopia\Query\NullsPosition.
Variants§
Implementations§
Source§impl NullsPosition
impl NullsPosition
Sourcepub const CASES: &'static [NullsPosition]
pub const CASES: &'static [NullsPosition]
Every case, in declaration order.
PHP: cases().
Sourcepub const PHP_CLASS: &'static str = "Utopia\\Query\\NullsPosition"
pub const PHP_CLASS: &'static str = "Utopia\\Query\\NullsPosition"
The PHP class of this enumeration.
Sourcepub fn try_from_value(value: &str) -> Option<Self>
pub fn try_from_value(value: &str) -> Option<Self>
The case with backing value value, if any.
PHP: tryFrom().
Sourcepub fn from_value(value: &str) -> Result<Self, Error>
pub fn from_value(value: &str) -> Result<Self, Error>
The case with backing value value.
PHP: from(), which throws ValueError (Error::InvalidValue) with the same message.
Trait Implementations§
Source§impl Clone for NullsPosition
impl Clone for NullsPosition
impl Copy for NullsPosition
Source§impl Debug for NullsPosition
impl Debug for NullsPosition
Source§impl Display for NullsPosition
impl Display for NullsPosition
impl Eq for NullsPosition
Source§impl From<NullsPosition> for Object
impl From<NullsPosition> for Object
Source§fn from(nulls: NullsPosition) -> Self
fn from(nulls: NullsPosition) -> Self
The enum case as an object value.
Source§impl From<NullsPosition> for Value
impl From<NullsPosition> for Value
Source§fn from(nulls: NullsPosition) -> Self
fn from(nulls: NullsPosition) -> Self
The enum case.
Source§impl Hash for NullsPosition
impl Hash for NullsPosition
Source§impl IntoValue for NullsPosition
impl IntoValue for NullsPosition
Source§fn into_value(self) -> Value
fn into_value(self) -> Value
The value.
Source§impl PartialEq for NullsPosition
impl PartialEq for NullsPosition
impl StructuralPartialEq for NullsPosition
Auto Trait Implementations§
impl Forget for NullsPosition
impl Freeze for NullsPosition
impl Move for NullsPosition
impl RefUnwindSafe for NullsPosition
impl Send for NullsPosition
impl Sync for NullsPosition
impl Unpin for NullsPosition
impl UnsafeUnpin for NullsPosition
impl UnwindSafe for NullsPosition
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.