Struct relational_types::ManyToMany [−][src]
pub struct ManyToMany<T, U> { /* fields omitted */ }
A many to many relation, i.e. a T
can have multiple U
, and
vice versa.
Implementations
impl<T, U> ManyToMany<T, U>
[src]
impl<T, U> ManyToMany<T, U>
[src]pub fn from_forward(forward: BTreeMap<Idx<T>, IdxSet<U>>) -> Self
[src]
pub fn from_forward(forward: BTreeMap<Idx<T>, IdxSet<U>>) -> Self
[src]Constructor from the forward relation.
pub fn from_relations_chain<R1, R2>(r1: &R1, r2: &R2) -> Self where
R1: Relation<From = T>,
R2: Relation<From = R1::To, To = U>,
[src]
pub fn from_relations_chain<R1, R2>(r1: &R1, r2: &R2) -> Self where
R1: Relation<From = T>,
R2: Relation<From = R1::To, To = U>,
[src]Constructor from 2 chained relations, i.e. from the relations
A->B
and B->C
, constructs the relation A->C
.
Trait Implementations
impl<T: Debug, U: Debug> Debug for ManyToMany<T, U>
[src]
impl<T: Debug, U: Debug> Debug for ManyToMany<T, U>
[src]impl<T: Default, U: Default> Default for ManyToMany<T, U>
[src]
impl<T: Default, U: Default> Default for ManyToMany<T, U>
[src]fn default() -> ManyToMany<T, U>
[src]
fn default() -> ManyToMany<T, U>
[src]Returns the “default value” for a type. Read more
impl<T, U> Relation for ManyToMany<T, U>
[src]
impl<T, U> Relation for ManyToMany<T, U>
[src]type From = T
type From = T
The type of the source object
type To = U
type To = U
The type of the targer object
fn get_corresponding_forward(&self, from: &IdxSet<T>) -> IdxSet<U>
[src]
fn get_corresponding_forward(&self, from: &IdxSet<T>) -> IdxSet<U>
[src]For a given set of the source objects, returns the corresponding targets objects. Read more
fn get_corresponding_backward(&self, from: &IdxSet<U>) -> IdxSet<T>
[src]
fn get_corresponding_backward(&self, from: &IdxSet<U>) -> IdxSet<T>
[src]For a given set of the target objects, returns the corresponding source objects. Read more
Auto Trait Implementations
impl<T, U> RefUnwindSafe for ManyToMany<T, U> where
T: RefUnwindSafe,
U: RefUnwindSafe,
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for ManyToMany<T, U> where
T: Send,
U: Send,
T: Send,
U: Send,
impl<T, U> Sync for ManyToMany<T, U> where
T: Sync,
U: Sync,
T: Sync,
U: Sync,
impl<T, U> Unpin for ManyToMany<T, U>
impl<T, U> UnwindSafe for ManyToMany<T, U> where
T: RefUnwindSafe,
U: RefUnwindSafe,
T: RefUnwindSafe,
U: RefUnwindSafe,