Lines Matching defs:Result
351 pub fn push(&mut self, v: T, flags: Flags) -> Result<(), AllocError> {
374 pub fn push_within_capacity(&mut self, v: T) -> Result<(), PushError<T>> {
425 ) -> Result<(), InsertError<T>> {
491 pub fn remove(&mut self, i: usize) -> Result<T, RemoveError> {
527 pub fn with_capacity(capacity: usize, flags: Flags) -> Result<Self, AllocError> {
648 pub fn reserve(&mut self, additional: usize, flags: Flags) -> Result<(), AllocError> {
789 pub fn shrink_to(&mut self, min_capacity: usize, flags: Flags) -> Result<(), AllocError> {
893 pub fn extend_with(&mut self, n: usize, value: T, flags: Flags) -> Result<(), AllocError> {
932 pub fn extend_from_slice(&mut self, other: &[T], flags: Flags) -> Result<(), AllocError> {
948 pub fn from_elem(value: T, n: usize, flags: Flags) -> Result<Self, AllocError> {
973 pub fn resize(&mut self, new_len: usize, value: T, flags: Flags) -> Result<(), AllocError> {
1030 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
1287 /// - `FromIterator::from_iter` does return `Self` instead of `Result<Self, AllocError>`, hence