Skip to main content

SearchPath

Trait SearchPath 

Source
pub trait SearchPath<'a>: Copy {
    // Required method
    fn iter_schemas(self) -> impl Iterator<Item = &'a str>;
}
Expand description

Abstracts over search-path representations so callers don’t need to allocate a Vec<&str> just to invoke the lookup helpers.

Implemented for [&'s str] (covering &'static [&'static str] from the typer) and [Identifier<'a>] (so SchemaCtx can pass self.search_path directly).

Required Methods§

Source

fn iter_schemas(self) -> impl Iterator<Item = &'a str>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'a> SearchPath<'a> for ()

Source§

fn iter_schemas(self) -> impl Iterator<Item = &'a str>

Source§

impl<'b> SearchPath<'b> for &[&'b str]

Source§

fn iter_schemas(self) -> impl Iterator<Item = &'b str>

Source§

impl<'b> SearchPath<'b> for &[Identifier<'b>]

Source§

fn iter_schemas(self) -> impl Iterator<Item = &'b str>

Implementors§