Skip to main content

RowCons

Struct RowCons 

Source
pub struct RowCons<K, V, Tail> { /* private fields */ }
Expand description

One field: V, filed under key K, followed by the rest in Tail.

Implementations§

Source§

impl<K, V, Tail> RowCons<K, V, Tail>

Source

pub fn value(&self) -> &V

This cell’s value. With tail and the key’s Named::NAME, this is everything a downstream crate needs to walk a row under whatever bounds it wants — serde::Serialize, Display, anything — which qbrs-core can’t offer itself, having no dependencies.

Source

pub fn tail(&self) -> &Tail

The rest of the row.

Trait Implementations§

Source§

impl<K, V: Clone, Tail: Clone> Clone for RowCons<K, V, Tail>

Source§

fn clone(&self) -> Self

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<K: Named, V, Tail: ColumnNames> ColumnNames for RowCons<K, V, Tail>

Source§

fn names() -> Vec<&'static str>

Source§

impl<K: Named, V: Debug, Tail: DebugFields> DebugFields for RowCons<K, V, Tail>

Source§

fn fmt_fields(&self, f: &mut DebugStruct<'_, '_>)

Source§

impl<K, V: Eq, Tail: Eq> Eq for RowCons<K, V, Tail>

Source§

impl<K, V, Tail> Field<K, Here> for RowCons<K, V, Tail>

Source§

type Value = V

Source§

type Rest = Tail

Source§

fn peek(&self) -> &V

Source§

fn pluck(self) -> (V, Tail)

Source§

impl<K, Other, V, Tail, I> Field<K, There<I>> for RowCons<Other, V, Tail>
where Tail: Field<K, I>,

Source§

type Value = <Tail as Field<K, I>>::Value

Source§

type Rest = RowCons<Other, V, <Tail as Field<K, I>>::Rest>

Source§

fn peek(&self) -> &Self::Value

Source§

fn pluck(self) -> (Self::Value, Self::Rest)

Source§

impl<C: Named, Tail: InsertValues> InsertValues for RowCons<C, InsertValue, Tail>

Source§

impl<K, V: PartialEq, Tail: PartialEq> PartialEq for RowCons<K, V, Tail>

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl<K, V, Tail> RowValues for RowCons<K, V, Tail>
where Tail: RowValues, Tail::Values: Prepend<V>,

Source§

type Values = <<Tail as RowValues>::Values as Prepend<V>>::Output

Source§

fn into_values(self) -> Self::Values

Source§

impl<K1, K2, V, Tail1, Tail2> SameShape<RowCons<K2, V, Tail2>> for RowCons<K1, V, Tail1>
where K1: SameNameAs<K2>, Tail1: SameShape<Tail2>,

Source§

impl<F, K, V, Tail> TakeNamed<F, Here> for RowCons<K, V, Tail>
where K: Spelled, F: Spelled<Name = <K as Named>::Name> + FieldValue<Value = V>,

Source§

impl<F, K, V, Tail, I> TakeNamed<F, There<I>> for RowCons<K, V, Tail>
where Tail: TakeNamed<F, I>,

Source§

type Value = <Tail as TakeNamed<F, I>>::Value

Source§

type Rest = RowCons<K, V, <Tail as TakeNamed<F, I>>::Rest>

Source§

fn take_named(self) -> (Self::Value, Self::Rest)

Auto Trait Implementations§

§

impl<K, V, Tail> Freeze for RowCons<K, V, Tail>
where V: Freeze, Tail: Freeze, PhantomData<fn() -> K>: Freeze,

§

impl<K, V, Tail> RefUnwindSafe for RowCons<K, V, Tail>

§

impl<K, V, Tail> Send for RowCons<K, V, Tail>
where V: Send, Tail: Send, PhantomData<fn() -> K>: Send,

§

impl<K, V, Tail> Sync for RowCons<K, V, Tail>
where V: Sync, Tail: Sync, PhantomData<fn() -> K>: Sync,

§

impl<K, V, Tail> Unpin for RowCons<K, V, Tail>
where V: Unpin, Tail: Unpin, PhantomData<fn() -> K>: Unpin,

§

impl<K, V, Tail> UnsafeUnpin for RowCons<K, V, Tail>
where V: UnsafeUnpin, Tail: UnsafeUnpin, PhantomData<fn() -> K>: UnsafeUnpin,

§

impl<K, V, Tail> UnwindSafe for RowCons<K, V, Tail>
where V: UnwindSafe, Tail: UnwindSafe, PhantomData<fn() -> K>: UnwindSafe,

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<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<S> Superset<Nil, Nil> for S

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 = !

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

fn try_from(value: U) -> Result<T, !>

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<T> WrapNullable<NotNull> for T