pub struct OperationIndex { /* private fields */ }Expand description
Read-only snapshot of every operation in a spec, in the order the analyzer surfaced them. Built once per command invocation.
Implementations§
Source§impl OperationIndex
impl OperationIndex
Sourcepub fn from_analysis(analysis: &SchemaAnalysis) -> Self
pub fn from_analysis(analysis: &SchemaAnalysis) -> Self
Build an index from an already-completed SchemaAnalysis.
Sourcepub fn from_summaries(operations: Vec<OperationSummary>) -> Self
pub fn from_summaries(operations: Vec<OperationSummary>) -> Self
Build directly from pre-built summaries. Used by tests and by
callers that have already projected OperationInfo to the
display shape.
pub fn operations(&self) -> &[OperationSummary]
Trait Implementations§
Source§impl Clone for OperationIndex
impl Clone for OperationIndex
Source§fn clone(&self) -> OperationIndex
fn clone(&self) -> OperationIndex
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 moreAuto Trait Implementations§
impl Freeze for OperationIndex
impl RefUnwindSafe for OperationIndex
impl Send for OperationIndex
impl Sync for OperationIndex
impl Unpin for OperationIndex
impl UnsafeUnpin for OperationIndex
impl UnwindSafe for OperationIndex
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