Skip to main content

Row

Struct Row 

Source
pub struct Row<'a> {
    pub values: Vec<DatabaseValue<'a>>,
}
Expand description

A collection of values surrounded by parentheses.

Fields§

§values: Vec<DatabaseValue<'a>>

Implementations§

Source§

impl<'a> Row<'a>

Source

pub fn new() -> Self

Source

pub fn push<T>(self, value: T) -> Self
where T: Into<DatabaseValue<'a>>,

Source

pub fn is_empty(&self) -> bool

Trait Implementations§

Source§

impl<'a> Clone for Row<'a>

Source§

fn clone(&self) -> Row<'a>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Comparable<'a> for Row<'a>

Source§

fn equals<T>(self, comparison: T) -> Compare<'a>
where T: Into<DatabaseValue<'a>>,

Tests if both sides are the same value. Read more
Source§

fn not_equals<T>(self, comparison: T) -> Compare<'a>
where T: Into<DatabaseValue<'a>>,

Tests if both sides are not the same value. Read more
Source§

fn less_than<T>(self, comparison: T) -> Compare<'a>
where T: Into<DatabaseValue<'a>>,

Tests if the left side is smaller than the right side. Read more
Source§

fn less_than_or_equals<T>(self, comparison: T) -> Compare<'a>
where T: Into<DatabaseValue<'a>>,

Tests if the left side is smaller than the right side or the same. Read more
Source§

fn greater_than<T>(self, comparison: T) -> Compare<'a>
where T: Into<DatabaseValue<'a>>,

Tests if the left side is bigger than the right side. Read more
Source§

fn greater_than_or_equals<T>(self, comparison: T) -> Compare<'a>
where T: Into<DatabaseValue<'a>>,

Tests if the left side is bigger than the right side or the same. Read more
Source§

fn in_selection<T>(self, selection: T) -> Compare<'a>
where T: Into<DatabaseValue<'a>>,

Tests if the left side is included in the right side collection. Read more
Source§

fn not_in_selection<T>(self, selection: T) -> Compare<'a>
where T: Into<DatabaseValue<'a>>,

Tests if the left side is not included in the right side collection. Read more
Source§

fn like<T>(self, pattern: T) -> Compare<'a>
where T: Into<Cow<'a, str>>,

Tests if the left side includes the right side string. Read more
Source§

fn not_like<T>(self, pattern: T) -> Compare<'a>
where T: Into<Cow<'a, str>>,

Tests if the left side does not include the right side string. Read more
Source§

fn begins_with<T>(self, pattern: T) -> Compare<'a>
where T: Into<Cow<'a, str>>,

Tests if the left side starts with the right side string. Read more
Source§

fn not_begins_with<T>(self, pattern: T) -> Compare<'a>
where T: Into<Cow<'a, str>>,

Tests if the left side doesn’t start with the right side string. Read more
Source§

fn ends_into<T>(self, pattern: T) -> Compare<'a>
where T: Into<Cow<'a, str>>,

Tests if the left side ends into the right side string. Read more
Source§

fn not_ends_into<T>(self, pattern: T) -> Compare<'a>
where T: Into<Cow<'a, str>>,

Tests if the left side does not end into the right side string. Read more
Source§

fn is_null(self) -> Compare<'a>

Tests if the left side is NULL. Read more
Source§

fn is_not_null(self) -> Compare<'a>

Tests if the left side is not NULL. Read more
Source§

fn between<T, V>(self, left: T, right: V) -> Compare<'a>
where T: Into<DatabaseValue<'a>>, V: Into<DatabaseValue<'a>>,

Tests if the value is between two given values. Read more
Source§

fn not_between<T, V>(self, left: T, right: V) -> Compare<'a>
where T: Into<DatabaseValue<'a>>, V: Into<DatabaseValue<'a>>,

Tests if the value is not between two given values. Read more
Source§

impl<'a> Debug for Row<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Default for Row<'a>

Source§

fn default() -> Row<'a>

Returns the “default value” for a type. Read more
Source§

impl<'a, A, B> From<(A, B)> for Row<'a>
where A: Into<DatabaseValue<'a>>, B: Into<DatabaseValue<'a>>,

Source§

fn from(vals: (A, B)) -> Self

Converts to this type from the input type.
Source§

impl<'a, A, B, C> From<(A, B, C)> for Row<'a>
where A: Into<DatabaseValue<'a>>, B: Into<DatabaseValue<'a>>, C: Into<DatabaseValue<'a>>,

Source§

fn from(vals: (A, B, C)) -> Self

Converts to this type from the input type.
Source§

impl<'a, A, B, C, D> From<(A, B, C, D)> for Row<'a>
where A: Into<DatabaseValue<'a>>, B: Into<DatabaseValue<'a>>, C: Into<DatabaseValue<'a>>, D: Into<DatabaseValue<'a>>,

Source§

fn from(vals: (A, B, C, D)) -> Self

Converts to this type from the input type.
Source§

impl<'a, A, B, C, D, E> From<(A, B, C, D, E)> for Row<'a>
where A: Into<DatabaseValue<'a>>, B: Into<DatabaseValue<'a>>, C: Into<DatabaseValue<'a>>, D: Into<DatabaseValue<'a>>, E: Into<DatabaseValue<'a>>,

Source§

fn from(vals: (A, B, C, D, E)) -> Self

Converts to this type from the input type.
Source§

impl<'a, A> From<(A,)> for Row<'a>
where A: Into<DatabaseValue<'a>>,

Source§

fn from((val): (A,)) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Row<'a>> for DatabaseValue<'a>

Source§

fn from(that: Row<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a, T> From<Vec<T>> for Row<'a>
where T: Into<DatabaseValue<'a>>,

Source§

fn from(vector: Vec<T>) -> Row<'a>

Converts to this type from the input type.
Source§

impl<'a> PartialEq for Row<'a>

Source§

fn eq(&self, other: &Row<'a>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a> StructuralPartialEq for Row<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for Row<'a>

§

impl<'a> RefUnwindSafe for Row<'a>

§

impl<'a> Send for Row<'a>

§

impl<'a> Sync for Row<'a>

§

impl<'a> Unpin for Row<'a>

§

impl<'a> UnsafeUnpin for Row<'a>

§

impl<'a> UnwindSafe for Row<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V