pub enum CursorDirection {
After,
Before,
}Expand description
Which side of a cursor row a page is on.
PHP: Utopia\Query\CursorDirection.
Variants§
Implementations§
Source§impl CursorDirection
impl CursorDirection
Sourcepub const CASES: &'static [CursorDirection]
pub const CASES: &'static [CursorDirection]
Every case, in declaration order.
PHP: cases().
Sourcepub const PHP_CLASS: &'static str = "Utopia\\Query\\CursorDirection"
pub const PHP_CLASS: &'static str = "Utopia\\Query\\CursorDirection"
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 CursorDirection
impl Clone for CursorDirection
impl Copy for CursorDirection
Source§impl Debug for CursorDirection
impl Debug for CursorDirection
Source§impl Display for CursorDirection
impl Display for CursorDirection
impl Eq for CursorDirection
Source§impl Hash for CursorDirection
impl Hash for CursorDirection
Source§impl PartialEq for CursorDirection
impl PartialEq for CursorDirection
impl StructuralPartialEq for CursorDirection
Auto Trait Implementations§
impl Forget for CursorDirection
impl Freeze for CursorDirection
impl Move for CursorDirection
impl RefUnwindSafe for CursorDirection
impl Send for CursorDirection
impl Sync for CursorDirection
impl Unpin for CursorDirection
impl UnsafeUnpin for CursorDirection
impl UnwindSafe for CursorDirection
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.