mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-27 06:30:20 +00:00
remove duplicate vec utils defined in the read_impls
This commit is contained in:
parent
828c253305
commit
84e76dbdce
1 changed files with 0 additions and 14 deletions
|
@ -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())
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue