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: Hasher>(&self, hasher: &mut H)

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

impl PartialEq<dyn ShapeCacheKey + '_> for dyn ShapeCacheKey + '_

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method 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, Rc<str>)

source§

fn direction(&self) -> Direction

source§

fn string(&self) -> &str

source§

impl ShapeCacheKey for (Direction, &str)

source§

fn direction(&self) -> Direction

source§

fn string(&self) -> &str

Implementors§