Location

Trait Location 

Source
pub trait Location:
    DynHashEq
    + Any
    + Send
    + Sync {
    // Required method
    fn fetch(&self) -> Result<Box<dyn Loader>, Error>;
}

Required Methods§

Source

fn fetch(&self) -> Result<Box<dyn Loader>, Error>

Trait Implementations§

Source§

impl Hash for dyn Location

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
Source§

impl PartialEq for dyn Location

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for dyn Location

Implementations on Foreign Types§

Source§

impl Location for PathBuf

Source§

fn fetch(&self) -> Result<Box<dyn Loader>, Error>

Implementors§

Source§

impl Location for ImageRef

Available on crate features avif or bmp or dds or exr or ff or gif or hdr or ico or pnm or qoi or tga or tiff or webp only.