pub struct Hints { /* private fields */ }Expand description
Optimation hints.
Implementations§
Source§impl Hints
impl Hints
pub fn new_with_idmap_dag( id_map: impl Into<IdMapSnapshot>, dag: impl Into<DagSnapshot>, ) -> Self
pub fn new_inherit_idmap_dag(hints: &Self) -> Self
Sourcepub fn union(hints_list: &[&Self]) -> Self
pub fn union(hints_list: &[&Self]) -> Self
Attempt to inherit properties (IdMap and Dag snapshots) from a list of hints. The returned hints have IdMap and Dag set to be compatible with all other hints in the list (or set to be None if that’s not possible).
pub fn flags(&self) -> Flags
pub fn contains(&self, flags: Flags) -> bool
pub fn min_id(&self) -> Option<Id>
pub fn max_id(&self) -> Option<Id>
pub fn update_flags_with(&self, func: impl Fn(Flags) -> Flags) -> &Self
pub fn add_flags(&self, flags: Flags) -> &Self
pub fn remove_flags(&self, flags: Flags) -> &Self
pub fn set_min_id(&self, min_id: Id) -> &Self
pub fn set_max_id(&self, max_id: Id) -> &Self
pub fn inherit_flags_min_max_id(&self, other: &Hints) -> &Self
pub fn dag(&self) -> Option<Arc<dyn DagAlgorithm + Send + Sync>>
pub fn id_map(&self) -> Option<Arc<dyn IdConvert + Send + Sync>>
Sourcepub fn dag_version(&self) -> Option<&VerLink>
pub fn dag_version(&self) -> Option<&VerLink>
The VerLink of the Dag. None if there is no Dag associated.
Sourcepub fn id_map_version(&self) -> Option<&VerLink>
pub fn id_map_version(&self) -> Option<&VerLink>
The VerLink of the IdMap. None if there is no IdMap associated.
Trait Implementations§
Source§impl From<&Hints> for DagSnapshot
impl From<&Hints> for DagSnapshot
Source§impl<'a> From<&'a Hints> for DagVersion<'a>
impl<'a> From<&'a Hints> for DagVersion<'a>
Source§impl From<&Hints> for IdMapSnapshot
impl From<&Hints> for IdMapSnapshot
Auto Trait Implementations§
impl !Freeze for Hints
impl !RefUnwindSafe for Hints
impl Send for Hints
impl Sync for Hints
impl Unpin for Hints
impl !UnwindSafe for Hints
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more