pub struct DependencyQueryLimits { /* private fields */ }Expand description
Bounds for a direct or transitive dependency query.
Implementations§
Source§impl DependencyQueryLimits
impl DependencyQueryLimits
Sourcepub fn new(max_depth: u32, max_representations: u32) -> Result<Self>
pub fn new(max_depth: u32, max_representations: u32) -> Result<Self>
Creates explicit graph-traversal bounds.
§Errors
Returns an invalid-argument error when either bound is zero or exceeds its documented maximum.
Sourcepub const fn max_depth(self) -> u32
pub const fn max_depth(self) -> u32
Returns the maximum number of dependency edges followed in one path.
Sourcepub const fn max_representations(self) -> u32
pub const fn max_representations(self) -> u32
Returns the maximum number of representations traversed.
Trait Implementations§
Source§impl Clone for DependencyQueryLimits
impl Clone for DependencyQueryLimits
Source§fn clone(&self) -> DependencyQueryLimits
fn clone(&self) -> DependencyQueryLimits
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DependencyQueryLimits
Source§impl Debug for DependencyQueryLimits
impl Debug for DependencyQueryLimits
impl Eq for DependencyQueryLimits
Source§impl PartialEq for DependencyQueryLimits
impl PartialEq for DependencyQueryLimits
impl StructuralPartialEq for DependencyQueryLimits
Auto Trait Implementations§
impl Freeze for DependencyQueryLimits
impl RefUnwindSafe for DependencyQueryLimits
impl Send for DependencyQueryLimits
impl Sync for DependencyQueryLimits
impl Unpin for DependencyQueryLimits
impl UnsafeUnpin for DependencyQueryLimits
impl UnwindSafe for DependencyQueryLimits
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