pub struct CallGraphValidationConfig {
pub orphan_whitelist: HashSet<String>,
pub additional_entry_points: HashSet<String>,
}Expand description
Configuration for call graph validation
Fields§
§orphan_whitelist: HashSet<String>Functions expected to be orphaned (won’t be flagged as issues)
additional_entry_points: HashSet<String>Additional entry points beyond standard detection
Implementations§
Source§impl CallGraphValidationConfig
impl CallGraphValidationConfig
Sourcepub fn add_orphan_whitelist(&mut self, function_name: String) -> &mut Self
pub fn add_orphan_whitelist(&mut self, function_name: String) -> &mut Self
Add a function to the orphan whitelist
Sourcepub fn add_entry_point(&mut self, function_name: String) -> &mut Self
pub fn add_entry_point(&mut self, function_name: String) -> &mut Self
Add an additional entry point
Sourcepub fn is_whitelisted_orphan(&self, function: &FunctionId) -> bool
pub fn is_whitelisted_orphan(&self, function: &FunctionId) -> bool
Check if a function is whitelisted as an expected orphan
Sourcepub fn is_additional_entry_point(&self, function: &FunctionId) -> bool
pub fn is_additional_entry_point(&self, function: &FunctionId) -> bool
Check if a function is configured as an additional entry point
Trait Implementations§
Source§impl Clone for CallGraphValidationConfig
impl Clone for CallGraphValidationConfig
Source§fn clone(&self) -> CallGraphValidationConfig
fn clone(&self) -> CallGraphValidationConfig
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 CallGraphValidationConfig
impl Debug for CallGraphValidationConfig
Source§impl Default for CallGraphValidationConfig
impl Default for CallGraphValidationConfig
Source§fn default() -> CallGraphValidationConfig
fn default() -> CallGraphValidationConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CallGraphValidationConfig
impl RefUnwindSafe for CallGraphValidationConfig
impl Send for CallGraphValidationConfig
impl Sync for CallGraphValidationConfig
impl Unpin for CallGraphValidationConfig
impl UnwindSafe for CallGraphValidationConfig
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> 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