pub struct ExtractionOptions {
pub tolerant_mode: bool,
pub preprocess: bool,
pub extract_calls: bool,
}Expand description
Extraction options for controlling parser behavior
Fields§
§tolerant_mode: boolIf true, extract entities even when the AST has errors
preprocess: boolIf true, apply preprocessing to help parse kernel/system code
extract_calls: boolIf true, extract function calls for call graph
Implementations§
Source§impl ExtractionOptions
impl ExtractionOptions
Sourcepub fn for_kernel_code() -> Self
pub fn for_kernel_code() -> Self
Create options optimized for kernel/system code
Trait Implementations§
Source§impl Clone for ExtractionOptions
impl Clone for ExtractionOptions
Source§fn clone(&self) -> ExtractionOptions
fn clone(&self) -> ExtractionOptions
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 ExtractionOptions
impl Debug for ExtractionOptions
Source§impl Default for ExtractionOptions
impl Default for ExtractionOptions
Source§fn default() -> ExtractionOptions
fn default() -> ExtractionOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ExtractionOptions
impl RefUnwindSafe for ExtractionOptions
impl Send for ExtractionOptions
impl Sync for ExtractionOptions
impl Unpin for ExtractionOptions
impl UnwindSafe for ExtractionOptions
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