Skip to main content

Labeled

Struct Labeled 

Source
pub struct Labeled<K, Inner> { /* private fields */ }
Expand description

A selected item filed under a LabelKey instead of under its own identity, and rendered with that name as its AS.

Trait Implementations§

Source§

impl<K, Inner: Clone> Clone for Labeled<K, Inner>

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: Spelled, Inner> LookupKey for Labeled<K, Inner>

Source§

impl<K: LabelKey, Inner: RowField<Scope, Idx>, Scope, Idx> RowField<Scope, Idx> for Labeled<K, Inner>

A label renames whatever it wraps and changes nothing else, so this is one impl rather than one per selectable: the inner value decides the scope check and the decoded type, the label decides the AS and the row key.

Source§

type Value = <Inner as RowField<Scope, Idx>>::Value

Source§

fn item(&self) -> SelectItem

Source§

impl<K, Inner> RowKey for Labeled<K, Inner>

Source§

type Key = K

Source§

impl<K, Inner, Scope, Idx> Selection<Scope, Idx> for Labeled<K, Inner>
where Labeled<K, Inner>: RowField<Scope, Idx>,

Source§

type Output = <Labeled<K, Inner> as RowField<Scope, Idx>>::Value

Source§

fn items(&self) -> Vec<SelectItem>

Source§

impl<K, Inner, Scope, Idx> SelectionPart<Scope, Idx> for Labeled<K, Inner>
where Labeled<K, Inner>: RowField<Scope, Idx>,

Source§

type Fields<Tail> = RowCons<<Labeled<K, Inner> as RowKey>::Key, <Labeled<K, Inner> as RowField<Scope, Idx>>::Value, Tail>

Source§

fn push_items(&self, out: &mut Vec<SelectItem>)

Auto Trait Implementations§

§

impl<K, Inner> Freeze for Labeled<K, Inner>
where Inner: Freeze, PhantomData<fn() -> K>: Freeze,

§

impl<K, Inner> RefUnwindSafe for Labeled<K, Inner>
where Inner: RefUnwindSafe, PhantomData<fn() -> K>: RefUnwindSafe,

§

impl<K, Inner> Send for Labeled<K, Inner>
where Inner: Send, PhantomData<fn() -> K>: Send,

§

impl<K, Inner> Sync for Labeled<K, Inner>
where Inner: Sync, PhantomData<fn() -> K>: Sync,

§

impl<K, Inner> Unpin for Labeled<K, Inner>
where Inner: Unpin, PhantomData<fn() -> K>: Unpin,

§

impl<K, Inner> UnsafeUnpin for Labeled<K, Inner>
where Inner: UnsafeUnpin, PhantomData<fn() -> K>: UnsafeUnpin,

§

impl<K, Inner> UnwindSafe for Labeled<K, Inner>
where Inner: 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