VecDeque::is_empty
pub fn is_empty() -> bool Import
Source: use collections::deque::{VecDeque}; src/collections/deque.hy Returns true when the deque has no values.
Called on a VecDeque value as value.is_empty(…).
Returns#
bool
See also#
VecDeque: A double-ended queue: constant-time push and pop at both ends.VecDeque::with_capacity: Empty deque with ring capacity rounded up to the next power of two (min 8).VecDeque::new: Empty deque with default capacity 8.VecDeque::size: Returns the number of values.VecDeque::capacity: Returns how many values fit before the ring buffer grows.VecDeque::push_back: Addsvat the back.VecDeque::push_front: Addsvat the front.VecDeque::peek_front: Returns the front value without removing it, orNonewhen the deque is empty.