pub struct CatalogResolver { /* private fields */ }Expand description
Catalog reference resolver
Implementations§
Source§impl CatalogResolver
impl CatalogResolver
Sourcepub fn with_catalog_manager(catalog_manager: CatalogManager) -> Self
pub fn with_catalog_manager(catalog_manager: CatalogManager) -> Self
Create a new catalog resolver with a catalog manager
Sourcepub fn set_catalog_manager(&mut self, catalog_manager: CatalogManager)
pub fn set_catalog_manager(&mut self, catalog_manager: CatalogManager)
Set the catalog manager
Sourcepub fn catalog_manager(&self) -> Option<&CatalogManager>
pub fn catalog_manager(&self) -> Option<&CatalogManager>
Get a reference to the catalog manager
Sourcepub fn begin_resolution(&mut self, reference_key: &str) -> Result<()>
pub fn begin_resolution(&mut self, reference_key: &str) -> Result<()>
Begin resolving a reference (for circular dependency detection)
Sourcepub fn end_resolution(&mut self, reference_key: &str)
pub fn end_resolution(&mut self, reference_key: &str)
End resolving a reference
Sourcepub fn is_resolving(&self, reference_key: &str) -> bool
pub fn is_resolving(&self, reference_key: &str) -> bool
Check if we’re currently resolving a reference
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CatalogResolver
impl RefUnwindSafe for CatalogResolver
impl Send for CatalogResolver
impl Sync for CatalogResolver
impl Unpin for CatalogResolver
impl UnsafeUnpin for CatalogResolver
impl UnwindSafe for CatalogResolver
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> 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