[][src]Enum owoof::projection::Concept

pub enum Concept<'a, V> {
    Location(Location),
    Entity(&'a EntityId),
    Attribute(&'a AttributeName<'a>),
    Value(Affinity&'a V),
}

Honestly, I don't even know what this is about. The V type typically implements HasAffinity so we could just about discriminate on Affinity::Entity and Affinity::Attribute instead?

I'm almost certain this pre-dates that trait and the crate::Value type though so maybe the hope was I could just use this instead of having those and keep things simpler?

Variants

Location(Location)
Entity(&'a EntityId)
Attribute(&'a AttributeName<'a>)
Value(Affinity&'a V)

Implementations

impl<'a, V> Concept<'a, V> where
    V: HasAffinity
[src]

pub fn value(v: &'a V) -> Self[src]

Trait Implementations

impl<'a, V: Debug> Debug for Concept<'a, V>[src]

impl<'a, V> From<&'a AttributeName<'a>> for Concept<'a, V>[src]

impl<'a, V> From<&'a EntityId> for Concept<'a, V>[src]

impl<'a, V> From<Location> for Concept<'a, V>[src]

Auto Trait Implementations

impl<'a, V> RefUnwindSafe for Concept<'a, V> where
    V: RefUnwindSafe

impl<'a, V> Send for Concept<'a, V> where
    V: Sync

impl<'a, V> Sync for Concept<'a, V> where
    V: Sync

impl<'a, V> Unpin for Concept<'a, V>

impl<'a, V> UnwindSafe for Concept<'a, V> where
    V: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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