pub trait HasLength {
// Required method
fn length(&self) -> usize;
}Expand description
Represents types that have length defined for their values.
Required Methods§
Implementations on Foreign Types§
Source§impl<T> HasLength for BinaryHeap<T>
Available on crate features alloc or std only.
impl<T> HasLength for BinaryHeap<T>
Available on crate features
alloc or std only.Source§impl<T> HasLength for LinkedList<T>
Available on crate features alloc or std only.
impl<T> HasLength for LinkedList<T>
Available on crate features
alloc or std only.Source§impl<T: ToOwned + HasLength + ?Sized> HasLength for Cow<'_, T>
Available on crate features alloc or std only.
impl<T: ToOwned + HasLength + ?Sized> HasLength for Cow<'_, T>
Available on crate features
alloc or std only.Source§impl<T: HasLength + ?Sized> HasLength for Box<T>
Available on crate features alloc or std only.
impl<T: HasLength + ?Sized> HasLength for Box<T>
Available on crate features
alloc or std only.Source§impl<T: HasLength + ?Sized> HasLength for Rc<T>
Available on crate features alloc or std only.
impl<T: HasLength + ?Sized> HasLength for Rc<T>
Available on crate features
alloc or std only.Source§impl<T: HasLength + ?Sized> HasLength for Arc<T>
Available on crate features alloc or std only.
impl<T: HasLength + ?Sized> HasLength for Arc<T>
Available on crate features
alloc or std only.