Trait GraphQuery

Source
pub trait GraphQuery<'g> {
    type Id: Copy + Eq + Hash + Debug;
    type Set: GraphSet<'g, Id = Self::Id>;

    // Required methods
    fn direction(&self) -> DependencyDirection;
    fn starts_from(&self, id: Self::Id) -> bool;
    fn resolve(self) -> Self::Set;
}

Required Associated Types§

Source

type Id: Copy + Eq + Hash + Debug

Source

type Set: GraphSet<'g, Id = Self::Id>

Required Methods§

Source

fn direction(&self) -> DependencyDirection

Source

fn starts_from(&self, id: Self::Id) -> bool

Source

fn resolve(self) -> Self::Set

Implementations on Foreign Types§

Source§

impl<'g> GraphQuery<'g> for FeatureQuery<'g>

Source§

type Id = FeatureId<'g>

Source§

type Set = FeatureSet<'g>

Source§

fn direction(&self) -> DependencyDirection

Source§

fn starts_from(&self, id: Self::Id) -> bool

Source§

fn resolve(self) -> Self::Set

Source§

impl<'g> GraphQuery<'g> for PackageQuery<'g>

Source§

type Id = &'g PackageId

Source§

type Set = PackageSet<'g>

Source§

fn direction(&self) -> DependencyDirection

Source§

fn starts_from(&self, id: Self::Id) -> bool

Source§

fn resolve(self) -> Self::Set

Implementors§