Trait TileParent

Source
pub trait TileParent:
    Eq
    + Hash
    + Copy
    + TileLike {
    // Required methods
    fn parent(&self, zoom: Option<u8>) -> Option<Self>
       where Self: Sized;
    fn root() -> Self
       where Self: Sized;

    // Provided method
    fn iter_parents(&self) -> Parents<Self> { ... }
}

Required Methods§

Source

fn parent(&self, zoom: Option<u8>) -> Option<Self>
where Self: Sized,

Source

fn root() -> Self
where Self: Sized,

Provided Methods§

Source

fn iter_parents(&self) -> Parents<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§