Trait ShapeCacheKey

Source
pub trait ShapeCacheKey {
    // Required methods
    fn direction(&self) -> Direction;
    fn string(&self) -> &str;
}

Required Methods§

Source

fn direction(&self) -> Direction

Source

fn string(&self) -> &str

Trait Implementations§

Source§

impl<'a> Borrow<dyn ShapeCacheKey + 'a> for (Direction, Rc<str>)

Source§

fn borrow(&self) -> &(dyn ShapeCacheKey + 'a)

Immutably borrows from an owned value. Read more
Source§

impl Hash for dyn ShapeCacheKey + '_

Source§

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

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

impl PartialEq for dyn ShapeCacheKey + '_

Source§

fn eq(&self, other: &dyn ShapeCacheKey) -> 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 ShapeCacheKey + '_

Implementations on Foreign Types§

Source§

impl ShapeCacheKey for (Direction, &str)

Source§

fn direction(&self) -> Direction

Source§

fn string(&self) -> &str

Source§

impl ShapeCacheKey for (Direction, Rc<str>)

Source§

fn direction(&self) -> Direction

Source§

fn string(&self) -> &str

Implementors§