Struct elipdotter::index::StrPtr

source ·
pub struct StrPtr { /* private fields */ }
Expand description

Needed to index a custom struct in maps. We have to have the same type, so this acts as both the borrowed and owned. TODO: Cow? But lifetime is a nightmare?

Trait Implementations§

source§

impl AsRef<str> for StrPtr

source§

fn as_ref(&self) -> &str

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for StrPtr

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, so