# The is\_not\_empty() method as more clearly alternative for !is\_empty()

**URL:** <https://internals.rust-lang.org/t/the-is-not-empty-method-as-more-clearly-alternative-for-is-empty/10612>\
**Category:** libs\
**Created:** [July 22, 2019, 8:31am UTC](https://internals.rust-lang.org/t/the-is-not-empty-method-as-more-clearly-alternative-for-is-empty/10612 "2019-07-22T08:31:14Z")\
**Posts on this page:** 1\
**Showing post:** 91

<div class="post-metadata">

**Author:** ![kornel](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/kornel/32/2711_2.png) [@kornel](https://internals.rust-lang.org/u/kornel)\
**Post date:** [September 3, 2019, 1:57pm UTC](https://internals.rust-lang.org/t/the-is-not-empty-method-as-more-clearly-alternative-for-is-empty/10612/91 "2019-09-03T13:57:10Z")

</div>

For consistency it should probably be `has_items`, since there's `remove_item` rather than `remove_element`. But the `Vec` documentation is pretty inconsistent about item/element anyway ☹

---

_[View the full topic](https://internals.rust-lang.org/t/the-is-not-empty-method-as-more-clearly-alternative-for-is-empty/10612)._
