Trait valence::nbt::compound::AsBorrowed
pub trait AsBorrowed<S> {
type Borrowed: ?Sized;
// Required method
fn as_borrowed(&self) -> &Self::Borrowed;
}
Expand description
Trait that can be used as a key to query a compound. Basically something
that can be converted to a type B
such that S: Borrow<B>
.