pub struct Confined<C: Collection, const MIN_LEN: usize, const MAX_LEN: usize>(/* private fields */);
Expand description
The confinement for the collection.
Implementations§
Source§impl<'c, C, const MIN_LEN: usize, const MAX_LEN: usize> Confined<C, MIN_LEN, MAX_LEN>
impl<'c, C, const MIN_LEN: usize, const MAX_LEN: usize> Confined<C, MIN_LEN, MAX_LEN>
Sourcepub fn iter_mut(&'c mut self) -> <&'c mut C as IntoIterator>::IntoIter
pub fn iter_mut(&'c mut self) -> <&'c mut C as IntoIterator>::IntoIter
Returns an iterator that allows modifying each value.
The iterator yields all items from start to end.
Source§impl<C, const MIN_LEN: usize, const MAX_LEN: usize> Confined<C, MIN_LEN, MAX_LEN>where
C: KeyedCollection,
impl<C, const MIN_LEN: usize, const MAX_LEN: usize> Confined<C, MIN_LEN, MAX_LEN>where
C: KeyedCollection,
Sourcepub fn values_mut(&mut self) -> impl Iterator<Item = &mut C::Value>
pub fn values_mut(&mut self) -> impl Iterator<Item = &mut C::Value>
Returns an iterator that allows modifying each value for each key.
Sourcepub fn keyed_values_mut(
&mut self,
) -> impl Iterator<Item = (&C::Key, &mut C::Value)>
pub fn keyed_values_mut( &mut self, ) -> impl Iterator<Item = (&C::Key, &mut C::Value)>
Returns an iterator that allows modifying each value for each key.
Source§impl<C: Collection, const MIN_LEN: usize, const MAX_LEN: usize> Confined<C, MIN_LEN, MAX_LEN>
impl<C: Collection, const MIN_LEN: usize, const MAX_LEN: usize> Confined<C, MIN_LEN, MAX_LEN>
Sourcepub fn from_checked(col: C) -> Self
pub fn from_checked(col: C) -> Self
Constructs confinement over collection which was already size-checked.
§Panics
Panics if the collection size doesn’t fit confinement type requirements.
pub fn from_collection_unsafe(col: C) -> Self
from_checked
Sourcepub fn try_from(col: C) -> Result<Self, Error>
pub fn try_from(col: C) -> Result<Self, Error>
Tries to construct a confinement over a collection. Fails if the number of items in the collection exceeds one of the confinement bounds.
Sourcepub fn try_from_iter<I: IntoIterator<Item = C::Item>>(
iter: I,
) -> Result<Self, Error>
pub fn try_from_iter<I: IntoIterator<Item = C::Item>>( iter: I, ) -> Result<Self, Error>
Tries to construct a confinement with a collection of elements taken from an iterator. Fails if the number of items in the collection exceeds one of the confinement bounds.
Sourcepub fn from_iter_checked<I: IntoIterator<Item = C::Item>>(iter: I) -> Self
pub fn from_iter_checked<I: IntoIterator<Item = C::Item>>(iter: I) -> Self
Construct a confinement with a collection of elements taken from an iterator.
§Panics
Panics if the number of items in the collection exceeds one of the confinement bounds.
pub fn from_iter_unsafe<I: IntoIterator<Item = C::Item>>(iter: I) -> Self
from_iter_checked
Sourcepub fn as_inner(&self) -> &C
👎Deprecated since 4.7.0: use as_unconfined method
pub fn as_inner(&self) -> &C
Returns inner collection type
Sourcepub fn as_unconfined(&self) -> &C
pub fn as_unconfined(&self) -> &C
Returns reference to the inner collection type.
Sourcepub fn to_inner(&self) -> Cwhere
C: Clone,
👎Deprecated since 4.7.0: use to_unconfined method
pub fn to_inner(&self) -> Cwhere
C: Clone,
Clones inner collection type and returns it
Sourcepub fn to_unconfined(&self) -> Cwhere
C: Clone,
pub fn to_unconfined(&self) -> Cwhere
C: Clone,
Clones inner collection and returns an unconfined version of it.
Sourcepub fn into_inner(self) -> C
👎Deprecated since 4.7.0: use release method
pub fn into_inner(self) -> C
Decomposes into the inner collection type
Sourcepub fn push(&mut self, elem: C::Item) -> Result<(), Error>
pub fn push(&mut self, elem: C::Item) -> Result<(), Error>
Attempts to add a single element to the confined collection. Fails if the number of elements in the collection already maximal.
Sourcepub fn extend<T: IntoIterator<Item = C::Item>>(
&mut self,
iter: T,
) -> Result<(), Error>
pub fn extend<T: IntoIterator<Item = C::Item>>( &mut self, iter: T, ) -> Result<(), Error>
Attempts to add all elements from an iterator to the confined collection. Fails if the number of elements in the collection already maximal.
Source§impl<C, const MAX_LEN: usize> Confined<C, ZERO, MAX_LEN>where
C: Default + Collection,
impl<C, const MAX_LEN: usize> Confined<C, ZERO, MAX_LEN>where
C: Default + Collection,
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Constructs a new confinement containing no elements, but with a
pre-allocated storage for the capacity
of elements.
Source§impl<C: KeyedCollection, const MIN_LEN: usize, const MAX_LEN: usize> Confined<C, MIN_LEN, MAX_LEN>
impl<C: KeyedCollection, const MIN_LEN: usize, const MAX_LEN: usize> Confined<C, MIN_LEN, MAX_LEN>
Sourcepub fn get_mut(&mut self, key: &C::Key) -> Option<&mut C::Value>
pub fn get_mut(&mut self, key: &C::Key) -> Option<&mut C::Value>
Gets mutable reference to an element of the collection.
Source§impl<C, const MAX_LEN: usize> Confined<C, ONE, MAX_LEN>where
C: Default + KeyedCollection,
impl<C, const MAX_LEN: usize> Confined<C, ONE, MAX_LEN>where
C: Default + KeyedCollection,
Sourcepub fn with_key_value(key: C::Key, value: C::Value) -> Self
pub fn with_key_value(key: C::Key, value: C::Value) -> Self
Constructs a confinement with a collection made of a single required key-value pair.
Source§impl<const MAX_LEN: usize> Confined<AsciiString, ZERO, MAX_LEN>
impl<const MAX_LEN: usize> Confined<AsciiString, ZERO, MAX_LEN>
Source§impl<T, const MIN_LEN: usize, const MAX_LEN: usize> Confined<Vec<T>, MIN_LEN, MAX_LEN>
impl<T, const MIN_LEN: usize, const MAX_LEN: usize> Confined<Vec<T>, MIN_LEN, MAX_LEN>
Sourcepub fn from_slice_checked(slice: &[T]) -> Selfwhere
T: Clone,
pub fn from_slice_checked(slice: &[T]) -> Selfwhere
T: Clone,
Constructs confinement out of slice of items. Does allocation.
§Panics
Panics if the size of the slice doesn’t match the confinement type bounds.
pub fn from_slice_unsafe(slice: &[T]) -> Selfwhere
T: Clone,
from_slice_checked
Source§impl<T, const MIN_LEN: usize, const MAX_LEN: usize> Confined<Vec<T>, MIN_LEN, MAX_LEN>
impl<T, const MIN_LEN: usize, const MAX_LEN: usize> Confined<Vec<T>, MIN_LEN, MAX_LEN>
Source§impl<T, const MIN_LEN: usize, const MAX_LEN: usize> Confined<VecDeque<T>, MIN_LEN, MAX_LEN>
impl<T, const MIN_LEN: usize, const MAX_LEN: usize> Confined<VecDeque<T>, MIN_LEN, MAX_LEN>
Sourcepub fn push_front(&mut self, elem: T) -> Result<(), Error>
pub fn push_front(&mut self, elem: T) -> Result<(), Error>
Prepends an element to the deque. Errors if the new collection length will not fit the confinement requirements.
pub fn push_from(&mut self, elem: T) -> Result<(), Error>
push_front
Sourcepub fn push_back(&mut self, elem: T) -> Result<(), Error>
pub fn push_back(&mut self, elem: T) -> Result<(), Error>
Appends an element to the deque. Errors if the new collection length will not fit the confinement requirements.
Sourcepub fn remove(&mut self, index: usize) -> Result<T, Error>
pub fn remove(&mut self, index: usize) -> Result<T, Error>
Removes an element from the deque at a given index. Errors if the index exceeds the number of elements in the deque, of if the new deque length will be less than the confinement requirement. Returns the removed element otherwise.
Sourcepub fn drain<R: RangeBounds<usize>>(&mut self, range: R) -> Drain<'_, T>
pub fn drain<R: RangeBounds<usize>>(&mut self, range: R) -> Drain<'_, T>
Removes the specified range from the deque in bulk, returning all removed elements as an iterator. If the iterator is dropped before being fully consumed, it drops the remaining removed elements.
The returned iterator keeps a mutable borrow on the queue to optimize its implementation.
§Panics
Panics if the starting point is greater than the end point or if the end point is greater than the length of the deque.
§Leaking
If the returned iterator goes out of scope without being dropped (due to
[mem::forget
], for example), the deque may have lost and leaked
elements arbitrarily, including elements outside the range.
Source§impl<T: Hash + Eq, const MIN_LEN: usize, const MAX_LEN: usize> Confined<HashSet<T>, MIN_LEN, MAX_LEN>
impl<T: Hash + Eq, const MIN_LEN: usize, const MAX_LEN: usize> Confined<HashSet<T>, MIN_LEN, MAX_LEN>
Source§impl<T: Ord, const MIN_LEN: usize, const MAX_LEN: usize> Confined<BTreeSet<T>, MIN_LEN, MAX_LEN>
impl<T: Ord, const MIN_LEN: usize, const MAX_LEN: usize> Confined<BTreeSet<T>, MIN_LEN, MAX_LEN>
Source§impl<K: Hash + Eq, V, const MIN_LEN: usize, const MAX_LEN: usize> Confined<HashMap<K, V>, MIN_LEN, MAX_LEN>
impl<K: Hash + Eq, V, const MIN_LEN: usize, const MAX_LEN: usize> Confined<HashMap<K, V>, MIN_LEN, MAX_LEN>
Sourcepub fn remove(&mut self, key: &K) -> Result<Option<V>, Error>
pub fn remove(&mut self, key: &K) -> Result<Option<V>, Error>
Removes an element from the map. Errors if the index exceeds the number of elements in the map, of if the new collection length will be less than the confinement requirement. Returns the removed value otherwise.
Sourcepub fn into_keys(self) -> IntoKeys<K, V>
pub fn into_keys(self) -> IntoKeys<K, V>
Creates a consuming iterator visiting all the keys in arbitrary order.
The map cannot be used after calling this.
The iterator element type is K
.
Sourcepub fn into_values(self) -> IntoValues<K, V>
pub fn into_values(self) -> IntoValues<K, V>
Creates a consuming iterator visiting all the values in arbitrary order.
The map cannot be used after calling this.
The iterator element type is V
.
Source§impl<K: Ord + Hash, V, const MIN_LEN: usize, const MAX_LEN: usize> Confined<BTreeMap<K, V>, MIN_LEN, MAX_LEN>
impl<K: Ord + Hash, V, const MIN_LEN: usize, const MAX_LEN: usize> Confined<BTreeMap<K, V>, MIN_LEN, MAX_LEN>
Sourcepub fn remove(&mut self, key: &K) -> Result<Option<V>, Error>
pub fn remove(&mut self, key: &K) -> Result<Option<V>, Error>
Removes an element from the map. Errors if the index exceeds the number of elements in the map, of if the new collection length will be less than the confinement requirement. Returns the removed value otherwise.
Sourcepub fn into_keys(self) -> IntoKeys<K, V>
pub fn into_keys(self) -> IntoKeys<K, V>
Creates a consuming iterator visiting all the keys in arbitrary order.
The map cannot be used after calling this.
The iterator element type is K
.
Sourcepub fn into_values(self) -> IntoValues<K, V>
pub fn into_values(self) -> IntoValues<K, V>
Creates a consuming iterator visiting all the values in arbitrary order.
The map cannot be used after calling this.
The iterator element type is V
.
Trait Implementations§
Source§impl<C, const MIN_LEN: usize, const MAX_LEN: usize> AsMut<[<C as Collection>::Item]> for Confined<C, MIN_LEN, MAX_LEN>
impl<C, const MIN_LEN: usize, const MAX_LEN: usize> AsMut<[<C as Collection>::Item]> for Confined<C, MIN_LEN, MAX_LEN>
Source§impl<C, const MIN_LEN: usize, const MAX_LEN: usize> AsRef<[<C as Collection>::Item]> for Confined<C, MIN_LEN, MAX_LEN>
impl<C, const MIN_LEN: usize, const MAX_LEN: usize> AsRef<[<C as Collection>::Item]> for Confined<C, MIN_LEN, MAX_LEN>
Source§impl<C, const MIN_LEN: usize, const MAX_LEN: usize> Borrow<[<C as Collection>::Item]> for Confined<C, MIN_LEN, MAX_LEN>
impl<C, const MIN_LEN: usize, const MAX_LEN: usize> Borrow<[<C as Collection>::Item]> for Confined<C, MIN_LEN, MAX_LEN>
Source§impl<C, const MIN_LEN: usize, const MAX_LEN: usize> BorrowMut<[<C as Collection>::Item]> for Confined<C, MIN_LEN, MAX_LEN>
impl<C, const MIN_LEN: usize, const MAX_LEN: usize> BorrowMut<[<C as Collection>::Item]> for Confined<C, MIN_LEN, MAX_LEN>
Source§fn borrow_mut(&mut self) -> &mut [C::Item]
fn borrow_mut(&mut self) -> &mut [C::Item]
Source§impl<C: Clone + Collection, const MIN_LEN: usize, const MAX_LEN: usize> Clone for Confined<C, MIN_LEN, MAX_LEN>
impl<C: Clone + Collection, const MIN_LEN: usize, const MAX_LEN: usize> Clone for Confined<C, MIN_LEN, MAX_LEN>
Source§impl<C: Debug + Collection, const MIN_LEN: usize, const MAX_LEN: usize> Debug for Confined<C, MIN_LEN, MAX_LEN>
impl<C: Debug + Collection, const MIN_LEN: usize, const MAX_LEN: usize> Debug for Confined<C, MIN_LEN, MAX_LEN>
Source§impl<C, const MAX_LEN: usize> Default for Confined<C, ZERO, MAX_LEN>where
C: Default + Collection,
impl<C, const MAX_LEN: usize> Default for Confined<C, ZERO, MAX_LEN>where
C: Default + Collection,
Source§impl<C: Collection, const MIN_LEN: usize, const MAX_LEN: usize> Deref for Confined<C, MIN_LEN, MAX_LEN>
impl<C: Collection, const MIN_LEN: usize, const MAX_LEN: usize> Deref for Confined<C, MIN_LEN, MAX_LEN>
Source§impl<C, const MIN_LEN: usize, const MAX_LEN: usize> Display for Confined<C, MIN_LEN, MAX_LEN>where
C: Display + Collection,
impl<C, const MIN_LEN: usize, const MAX_LEN: usize> Display for Confined<C, MIN_LEN, MAX_LEN>where
C: Display + Collection,
Source§impl<const MIN_LEN: usize, const MAX_LEN: usize> FromHex for Confined<Vec<u8>, MIN_LEN, MAX_LEN>
impl<const MIN_LEN: usize, const MAX_LEN: usize> FromHex for Confined<Vec<u8>, MIN_LEN, MAX_LEN>
Source§impl<C, const MIN_LEN: usize, const MAX_LEN: usize> FromStr for Confined<C, MIN_LEN, MAX_LEN>where
C: FromStr + Collection,
impl<C, const MIN_LEN: usize, const MAX_LEN: usize> FromStr for Confined<C, MIN_LEN, MAX_LEN>where
C: FromStr + Collection,
Source§impl<C: Hash + Collection, const MIN_LEN: usize, const MAX_LEN: usize> Hash for Confined<C, MIN_LEN, MAX_LEN>
impl<C: Hash + Collection, const MIN_LEN: usize, const MAX_LEN: usize> Hash for Confined<C, MIN_LEN, MAX_LEN>
Source§impl<C, const MIN_LEN: usize, const MAX_LEN: usize> Index<Range<usize>> for Confined<C, MIN_LEN, MAX_LEN>
impl<C, const MIN_LEN: usize, const MAX_LEN: usize> Index<Range<usize>> for Confined<C, MIN_LEN, MAX_LEN>
Source§impl<C, const MIN_LEN: usize, const MAX_LEN: usize> Index<RangeFrom<usize>> for Confined<C, MIN_LEN, MAX_LEN>
impl<C, const MIN_LEN: usize, const MAX_LEN: usize> Index<RangeFrom<usize>> for Confined<C, MIN_LEN, MAX_LEN>
Source§impl<C, const MIN_LEN: usize, const MAX_LEN: usize> Index<RangeFull> for Confined<C, MIN_LEN, MAX_LEN>
impl<C, const MIN_LEN: usize, const MAX_LEN: usize> Index<RangeFull> for Confined<C, MIN_LEN, MAX_LEN>
Source§impl<C, const MIN_LEN: usize, const MAX_LEN: usize> Index<RangeInclusive<usize>> for Confined<C, MIN_LEN, MAX_LEN>
impl<C, const MIN_LEN: usize, const MAX_LEN: usize> Index<RangeInclusive<usize>> for Confined<C, MIN_LEN, MAX_LEN>
Source§impl<C, const MIN_LEN: usize, const MAX_LEN: usize> Index<RangeTo<usize>> for Confined<C, MIN_LEN, MAX_LEN>
impl<C, const MIN_LEN: usize, const MAX_LEN: usize> Index<RangeTo<usize>> for Confined<C, MIN_LEN, MAX_LEN>
Source§impl<C, const MIN_LEN: usize, const MAX_LEN: usize> Index<RangeToInclusive<usize>> for Confined<C, MIN_LEN, MAX_LEN>
impl<C, const MIN_LEN: usize, const MAX_LEN: usize> Index<RangeToInclusive<usize>> for Confined<C, MIN_LEN, MAX_LEN>
Source§impl<C, const MIN_LEN: usize, const MAX_LEN: usize> Index<usize> for Confined<C, MIN_LEN, MAX_LEN>
impl<C, const MIN_LEN: usize, const MAX_LEN: usize> Index<usize> for Confined<C, MIN_LEN, MAX_LEN>
Source§impl<C, const MIN_LEN: usize, const MAX_LEN: usize> IndexMut<Range<usize>> for Confined<C, MIN_LEN, MAX_LEN>
impl<C, const MIN_LEN: usize, const MAX_LEN: usize> IndexMut<Range<usize>> for Confined<C, MIN_LEN, MAX_LEN>
Source§impl<C, const MIN_LEN: usize, const MAX_LEN: usize> IndexMut<RangeFrom<usize>> for Confined<C, MIN_LEN, MAX_LEN>
impl<C, const MIN_LEN: usize, const MAX_LEN: usize> IndexMut<RangeFrom<usize>> for Confined<C, MIN_LEN, MAX_LEN>
Source§impl<C, const MIN_LEN: usize, const MAX_LEN: usize> IndexMut<RangeFull> for Confined<C, MIN_LEN, MAX_LEN>
impl<C, const MIN_LEN: usize, const MAX_LEN: usize> IndexMut<RangeFull> for Confined<C, MIN_LEN, MAX_LEN>
Source§impl<C, const MIN_LEN: usize, const MAX_LEN: usize> IndexMut<RangeInclusive<usize>> for Confined<C, MIN_LEN, MAX_LEN>
impl<C, const MIN_LEN: usize, const MAX_LEN: usize> IndexMut<RangeInclusive<usize>> for Confined<C, MIN_LEN, MAX_LEN>
Source§impl<C, const MIN_LEN: usize, const MAX_LEN: usize> IndexMut<RangeTo<usize>> for Confined<C, MIN_LEN, MAX_LEN>
impl<C, const MIN_LEN: usize, const MAX_LEN: usize> IndexMut<RangeTo<usize>> for Confined<C, MIN_LEN, MAX_LEN>
Source§impl<C, const MIN_LEN: usize, const MAX_LEN: usize> IndexMut<RangeToInclusive<usize>> for Confined<C, MIN_LEN, MAX_LEN>
impl<C, const MIN_LEN: usize, const MAX_LEN: usize> IndexMut<RangeToInclusive<usize>> for Confined<C, MIN_LEN, MAX_LEN>
Source§impl<C, const MIN_LEN: usize, const MAX_LEN: usize> IndexMut<usize> for Confined<C, MIN_LEN, MAX_LEN>
impl<C, const MIN_LEN: usize, const MAX_LEN: usize> IndexMut<usize> for Confined<C, MIN_LEN, MAX_LEN>
Source§impl<'c, C: Collection, const MIN_LEN: usize, const MAX_LEN: usize> IntoIterator for &'c Confined<C, MIN_LEN, MAX_LEN>where
&'c C: IntoIterator,
impl<'c, C: Collection, const MIN_LEN: usize, const MAX_LEN: usize> IntoIterator for &'c Confined<C, MIN_LEN, MAX_LEN>where
&'c C: IntoIterator,
Source§impl<'c, C: Collection, const MIN_LEN: usize, const MAX_LEN: usize> IntoIterator for &'c mut Confined<C, MIN_LEN, MAX_LEN>where
&'c mut C: IntoIterator,
impl<'c, C: Collection, const MIN_LEN: usize, const MAX_LEN: usize> IntoIterator for &'c mut Confined<C, MIN_LEN, MAX_LEN>where
&'c mut C: IntoIterator,
Source§impl<C, const MIN_LEN: usize, const MAX_LEN: usize> IntoIterator for Confined<C, MIN_LEN, MAX_LEN>where
C: IntoIterator + Collection,
impl<C, const MIN_LEN: usize, const MAX_LEN: usize> IntoIterator for Confined<C, MIN_LEN, MAX_LEN>where
C: IntoIterator + Collection,
Source§impl<const MIN_LEN: usize, const MAX_LEN: usize> LowerHex for Confined<Vec<u8>, MIN_LEN, MAX_LEN>
impl<const MIN_LEN: usize, const MAX_LEN: usize> LowerHex for Confined<Vec<u8>, MIN_LEN, MAX_LEN>
Source§impl<C: Ord + Collection, const MIN_LEN: usize, const MAX_LEN: usize> Ord for Confined<C, MIN_LEN, MAX_LEN>
impl<C: Ord + Collection, const MIN_LEN: usize, const MAX_LEN: usize> Ord for Confined<C, MIN_LEN, MAX_LEN>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl<C: PartialEq + Collection, const MIN_LEN: usize, const MAX_LEN: usize> PartialEq for Confined<C, MIN_LEN, MAX_LEN>
impl<C: PartialEq + Collection, const MIN_LEN: usize, const MAX_LEN: usize> PartialEq for Confined<C, MIN_LEN, MAX_LEN>
Source§impl<C: PartialOrd + Collection, const MIN_LEN: usize, const MAX_LEN: usize> PartialOrd for Confined<C, MIN_LEN, MAX_LEN>
impl<C: PartialOrd + Collection, const MIN_LEN: usize, const MAX_LEN: usize> PartialOrd for Confined<C, MIN_LEN, MAX_LEN>
Source§impl<const MIN_LEN: usize, const MAX_LEN: usize> TryFrom<&str> for Confined<AsciiString, MIN_LEN, MAX_LEN>
impl<const MIN_LEN: usize, const MAX_LEN: usize> TryFrom<&str> for Confined<AsciiString, MIN_LEN, MAX_LEN>
Source§impl<const MIN_LEN: usize, const MAX_LEN: usize> TryFrom<&str> for Confined<String, MIN_LEN, MAX_LEN>
impl<const MIN_LEN: usize, const MAX_LEN: usize> TryFrom<&str> for Confined<String, MIN_LEN, MAX_LEN>
Source§impl<const MIN_LEN: usize, const MAX_LEN: usize> UpperHex for Confined<Vec<u8>, MIN_LEN, MAX_LEN>
impl<const MIN_LEN: usize, const MAX_LEN: usize> UpperHex for Confined<Vec<u8>, MIN_LEN, MAX_LEN>
Source§impl<const MAX_LEN: usize> Write for Confined<Vec<u8>, ZERO, MAX_LEN>
impl<const MAX_LEN: usize> Write for Confined<Vec<u8>, ZERO, MAX_LEN>
Source§fn write(&mut self, buf: &[u8]) -> Result<usize>
fn write(&mut self, buf: &[u8]) -> Result<usize>
Source§fn flush(&mut self) -> Result<()>
fn flush(&mut self) -> Result<()>
Source§fn is_write_vectored(&self) -> bool
fn is_write_vectored(&self) -> bool
can_vector
)1.0.0 · Source§fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
Source§fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error>
fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error>
write_all_vectored
)impl<C: Eq + Collection, const MIN_LEN: usize, const MAX_LEN: usize> Eq for Confined<C, MIN_LEN, MAX_LEN>
impl<C: Collection, const MIN_LEN: usize, const MAX_LEN: usize> StructuralPartialEq for Confined<C, MIN_LEN, MAX_LEN>
Auto Trait Implementations§
impl<C, const MIN_LEN: usize, const MAX_LEN: usize> Freeze for Confined<C, MIN_LEN, MAX_LEN>where
C: Freeze,
impl<C, const MIN_LEN: usize, const MAX_LEN: usize> RefUnwindSafe for Confined<C, MIN_LEN, MAX_LEN>where
C: RefUnwindSafe,
impl<C, const MIN_LEN: usize, const MAX_LEN: usize> Send for Confined<C, MIN_LEN, MAX_LEN>where
C: Send,
impl<C, const MIN_LEN: usize, const MAX_LEN: usize> Sync for Confined<C, MIN_LEN, MAX_LEN>where
C: Sync,
impl<C, const MIN_LEN: usize, const MAX_LEN: usize> Unpin for Confined<C, MIN_LEN, MAX_LEN>where
C: Unpin,
impl<C, const MIN_LEN: usize, const MAX_LEN: usize> UnwindSafe for Confined<C, MIN_LEN, MAX_LEN>where
C: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)