pub enum GraphWeightPolicy {
Ignored,
Optional,
Required,
}Expand description
Weight-column policy for a graph algorithm.
Variants§
Ignored
A bound weight column is accepted as graph-construction metadata but is ignored by the algorithm’s current semantic result.
Optional
A bound weight column is optional and changes algorithm results when present.
Required
A bound weight column is required for semantically valid execution.
Implementations§
Source§impl GraphWeightPolicy
impl GraphWeightPolicy
Sourcepub const fn consumes_weight(self) -> bool
pub const fn consumes_weight(self) -> bool
Whether this policy means the native executor consumes weights as an algorithm input when a weight column is bound.
Sourcepub const fn requires_weight(self) -> bool
pub const fn requires_weight(self) -> bool
Whether a weight column is mandatory for this algorithm.
Trait Implementations§
Source§impl Clone for GraphWeightPolicy
impl Clone for GraphWeightPolicy
impl Copy for GraphWeightPolicy
Source§impl Debug for GraphWeightPolicy
impl Debug for GraphWeightPolicy
impl Eq for GraphWeightPolicy
Source§impl Hash for GraphWeightPolicy
impl Hash for GraphWeightPolicy
Source§impl PartialEq for GraphWeightPolicy
impl PartialEq for GraphWeightPolicy
impl StructuralPartialEq for GraphWeightPolicy
Auto Trait Implementations§
impl Freeze for GraphWeightPolicy
impl RefUnwindSafe for GraphWeightPolicy
impl Send for GraphWeightPolicy
impl Sync for GraphWeightPolicy
impl Unpin for GraphWeightPolicy
impl UnsafeUnpin for GraphWeightPolicy
impl UnwindSafe for GraphWeightPolicy
Blanket Implementations§
impl<T> Allocation for T
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