Struct core::escape::EscapeIterInner
source · pub(crate) struct EscapeIterInner<const N: usize> {
pub(crate) data: [Char; N],
pub(crate) alive: Range<u8>,
}
Expand description
An iterator over an fixed-size array.
This is essentially equivalent to array’s IntoIter except that indexes are limited to u8 to reduce size of the structure.
Fields§
§data: [Char; N]
§alive: Range<u8>
Implementations§
source§impl<const N: usize> EscapeIterInner<N>
impl<const N: usize> EscapeIterInner<N>
pub fn new(data: [Char; N], alive: Range<u8>) -> Self
pub fn from_array<const M: usize>(array: [Char; M]) -> Self
pub fn as_ascii(&self) -> &[Char]
pub fn as_str(&self) -> &str
pub fn len(&self) -> usize
pub fn next(&mut self) -> Option<u8>
pub fn next_back(&mut self) -> Option<u8>
pub fn advance_by(&mut self, n: usize) -> Result<(), NonZeroUsize>
pub fn advance_back_by(&mut self, n: usize) -> Result<(), NonZeroUsize>
Trait Implementations§
source§impl<const N: usize> Clone for EscapeIterInner<N>
impl<const N: usize> Clone for EscapeIterInner<N>
source§fn clone(&self) -> EscapeIterInner<N>
fn clone(&self) -> EscapeIterInner<N>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<const N: usize> Freeze for EscapeIterInner<N>
impl<const N: usize> RefUnwindSafe for EscapeIterInner<N>
impl<const N: usize> Send for EscapeIterInner<N>
impl<const N: usize> Sync for EscapeIterInner<N>
impl<const N: usize> Unpin for EscapeIterInner<N>
impl<const N: usize> UnwindSafe for EscapeIterInner<N>
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
Mutably borrows from an owned value. Read more