pub struct LargeSbomConfig {
pub lsh_threshold: usize,
pub cross_ecosystem: CrossEcosystemConfig,
pub max_candidates: usize,
pub hungarian_threshold: usize,
pub enable_swap_optimization: bool,
pub max_swap_iterations: usize,
}Expand description
Configuration for large SBOM optimization.
Fields§
§lsh_threshold: usizeMinimum component count to enable LSH-based matching
cross_ecosystem: CrossEcosystemConfigCross-ecosystem matching configuration
max_candidates: usizeMaximum candidates per component
hungarian_threshold: usizeMaximum problem size for Hungarian algorithm (falls back to greedy+swaps above this)
enable_swap_optimization: boolEnable 2-opt swap optimization for greedy assignment
max_swap_iterations: usizeMaximum swap iterations for 2-opt optimization
Implementations§
Source§impl LargeSbomConfig
impl LargeSbomConfig
Sourcepub const fn enable_cross_ecosystem(&self) -> bool
pub const fn enable_cross_ecosystem(&self) -> bool
Check if cross-ecosystem matching is enabled.
Sourcepub fn aggressive() -> Self
pub fn aggressive() -> Self
Aggressive optimization for very large SBOMs (1000+)
Sourcepub fn conservative() -> Self
pub fn conservative() -> Self
Conservative settings (for accuracy over speed)
Trait Implementations§
Source§impl Clone for LargeSbomConfig
impl Clone for LargeSbomConfig
Source§fn clone(&self) -> LargeSbomConfig
fn clone(&self) -> LargeSbomConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LargeSbomConfig
impl Debug for LargeSbomConfig
Auto Trait Implementations§
impl Freeze for LargeSbomConfig
impl RefUnwindSafe for LargeSbomConfig
impl Send for LargeSbomConfig
impl Sync for LargeSbomConfig
impl Unpin for LargeSbomConfig
impl UnsafeUnpin for LargeSbomConfig
impl UnwindSafe for LargeSbomConfig
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