pub const fn from_ref<T: EntityEquivalent>(
s: &T,
) -> &UniqueEntityEquivalentSlice<T>
Expand description
Converts a reference to T into a slice of length 1 (without copying).
pub const fn from_ref<T: EntityEquivalent>(
s: &T,
) -> &UniqueEntityEquivalentSlice<T>
Converts a reference to T into a slice of length 1 (without copying).