Trait similar::DiffableStrRef [−][src]
Reference to a DiffableStr
.
This type exists because while the library only really provides ways to
work with &str
and &[u8]
there are types that deref into those string
slices such as String
and Vec<u8>
.
This trait is used in the library whenever it’s nice to be able to pass strings of different types in.
Requires the text
feature.
Associated Types
type Output: DiffableStr + ?Sized
[src]
The type of the resolved DiffableStr
.
Required methods
fn as_diffable_str(&self) -> &Self::Output
[src]
Resolves the reference.