pub enum LookupResult<'a> {
Yaml(&'a FunctionSpec, Option<&'a DerivedSpec>),
DerivedOnly(&'a DerivedSpec),
}Expand description
Result of looking up a function in the analyzed registry.
Variants§
Yaml(&'a FunctionSpec, Option<&'a DerivedSpec>)
YAML spec exists, with optional derived overlay.
DerivedOnly(&'a DerivedSpec)
Only analysis-derived spec exists (no YAML entry).
Implementations§
Source§impl<'a> LookupResult<'a>
impl<'a> LookupResult<'a>
Sourcepub fn yaml(&self) -> Option<&'a FunctionSpec>
pub fn yaml(&self) -> Option<&'a FunctionSpec>
Get the YAML spec if present.
Sourcepub fn derived(&self) -> Option<&'a DerivedSpec>
pub fn derived(&self) -> Option<&'a DerivedSpec>
Get the derived spec if present.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for LookupResult<'a>
impl<'a> RefUnwindSafe for LookupResult<'a>
impl<'a> Send for LookupResult<'a>
impl<'a> Sync for LookupResult<'a>
impl<'a> Unpin for LookupResult<'a>
impl<'a> UnsafeUnpin for LookupResult<'a>
impl<'a> UnwindSafe for LookupResult<'a>
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