remove duplicate vec utils defined in the read_impls

This commit is contained in:
Evan Almloff 2024-01-23 17:23:04 -06:00
parent 828c253305
commit 84e76dbdce

View file

@ -52,20 +52,6 @@ macro_rules! read_impls {
self.with(|v| *v == *other)
}
}
impl<T: $($extra_bounds + )? 'static $(,$vec_bound_ty: $vec_bound)?> $ty<Vec<T>, $($vec_bound_ty)?> {
/// Returns the length of the inner vector.
#[track_caller]
pub fn len(&self) -> usize {
self.with(|v| v.len())
}
/// Returns true if the inner vector is empty.
#[track_caller]
pub fn is_empty(&self) -> bool {
self.with(|v| v.is_empty())
}
}
};
}