Trait scir::IndexOwned
source · pub trait IndexOwned<Idx>where
Idx: ?Sized,{
type Output;
// Required method
fn index(&self, index: Idx) -> Self::Output;
}
Expand description
Index into an object.
Unlike std::ops::Index
, allows implementors
to return ownership of data, rather than just a reference.