#[non_exhaustive]pub struct Extraction {
pub definitions: Vec<StepDefinition>,
pub parameter_types: Vec<SourceParameterType>,
pub indirect_usage: Option<IndirectStepUsage>,
pub diagnostics: Vec<ExtractionDiagnostic>,
}Expand description
Definitions and non-fatal diagnostics extracted from one source.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.definitions: Vec<StepDefinition>Successfully extracted definitions.
parameter_types: Vec<SourceParameterType>Parameter declarations; merge the complete source registry before matching expressions.
indirect_usage: Option<IndirectStepUsage>Optional indirect usage metadata; merge across every selected Ruby source.
diagnostics: Vec<ExtractionDiagnostic>Problems that did not prevent extraction of the rest of the file.
Implementations§
Source§impl Extraction
impl Extraction
Sourcepub fn new(
definitions: Vec<StepDefinition>,
diagnostics: Vec<ExtractionDiagnostic>,
) -> Self
pub fn new( definitions: Vec<StepDefinition>, diagnostics: Vec<ExtractionDiagnostic>, ) -> Self
Creates an extraction result from definitions and non-fatal diagnostics.
Trait Implementations§
Source§impl Clone for Extraction
impl Clone for Extraction
Source§impl Debug for Extraction
impl Debug for Extraction
Source§impl Default for Extraction
impl Default for Extraction
Source§impl PartialEq for Extraction
impl PartialEq for Extraction
impl StructuralPartialEq for Extraction
Auto Trait Implementations§
impl Freeze for Extraction
impl RefUnwindSafe for Extraction
impl Send for Extraction
impl Sync for Extraction
impl Unpin for Extraction
impl UnsafeUnpin for Extraction
impl UnwindSafe for Extraction
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