pub struct ProductSyntaxIndexV0 { /* private fields */ }Implementations§
Source§impl ProductSyntaxIndexV0
impl ProductSyntaxIndexV0
pub fn new(source: &str, parsed: &ParseResult) -> Self
pub fn declarations(&self) -> &[ParserDeclarationSyntaxFactV0]
Sourcepub fn declarations_from_parse(
source: &str,
parsed: &ParseResult,
) -> Vec<ParserDeclarationSyntaxFactV0>
pub fn declarations_from_parse( source: &str, parsed: &ParseResult, ) -> Vec<ParserDeclarationSyntaxFactV0>
Project declarations from an existing parse without building the unrelated product-index families.
Sourcepub fn into_declarations(self) -> Vec<ParserDeclarationSyntaxFactV0>
pub fn into_declarations(self) -> Vec<ParserDeclarationSyntaxFactV0>
Consume the index and return its declaration projection without cloning declaration strings.
Trait Implementations§
Source§impl Clone for ProductSyntaxIndexV0
impl Clone for ProductSyntaxIndexV0
Source§fn clone(&self) -> ProductSyntaxIndexV0
fn clone(&self) -> ProductSyntaxIndexV0
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 moreSource§impl Debug for ProductSyntaxIndexV0
impl Debug for ProductSyntaxIndexV0
Source§impl Default for ProductSyntaxIndexV0
impl Default for ProductSyntaxIndexV0
Source§fn default() -> ProductSyntaxIndexV0
fn default() -> ProductSyntaxIndexV0
Returns the “default value” for a type. Read more
impl Eq for ProductSyntaxIndexV0
Source§impl PartialEq for ProductSyntaxIndexV0
impl PartialEq for ProductSyntaxIndexV0
impl StructuralPartialEq for ProductSyntaxIndexV0
Auto Trait Implementations§
impl Freeze for ProductSyntaxIndexV0
impl RefUnwindSafe for ProductSyntaxIndexV0
impl Send for ProductSyntaxIndexV0
impl Sync for ProductSyntaxIndexV0
impl Unpin for ProductSyntaxIndexV0
impl UnsafeUnpin for ProductSyntaxIndexV0
impl UnwindSafe for ProductSyntaxIndexV0
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.