}
}
- /// Shortens a `VecDeque`, dropping excess elements from the back.
+ /// Shortens the `VecDeque`, dropping excess elements from the back.
///
/// If `len` is greater than the `VecDeque`'s current length, this has no
/// effect.
a.contains(x) || b.contains(x)
}
- /// Provides a reference to the front element, or `None` if the sequence is
+ /// Provides a reference to the front element, or `None` if the `VecDeque` is
/// empty.
///
/// # Examples
}
/// Provides a mutable reference to the front element, or `None` if the
- /// sequence is empty.
+ /// `VecDeque` is empty.
///
/// # Examples
///
}
}
- /// Provides a reference to the back element, or `None` if the sequence is
+ /// Provides a reference to the back element, or `None` if the `VecDeque` is
/// empty.
///
/// # Examples
}
/// Provides a mutable reference to the back element, or `None` if the
- /// sequence is empty.
+ /// `VecDeque` is empty.
///
/// # Examples
///
}
}
- /// Removes the first element and returns it, or `None` if the sequence is
+ /// Removes the first element and returns it, or `None` if the `VecDeque` is
/// empty.
///
/// # Examples
}
}
- /// Inserts an element first in the sequence.
+ /// Prepends an element to the front of the `VecDeque`.
///
/// # Examples
///
}
}
- /// Appends an element to the back of a buffer
+ /// Appends an element to the back of the `VecDeque`.
///
/// # Examples
///
unsafe { self.buffer_write(head, value) }
}
- /// Removes the last element from a buffer and returns it, or `None` if
+ /// Removes the last element from the `VecDeque` and returns it, or `None` if
/// it is empty.
///
/// # Examples