[−][src]Trait ascii::AsMutAsciiStr
Convert mutable slices of bytes or AsciiChar to AsciiStr
.
Required methods
fn slice_ascii_mut<R>(
&mut self,
range: R
) -> Result<&mut AsciiStr, AsAsciiStrError> where
R: SliceIndex<[Self::Inner], Output = [Self::Inner]>,
&mut self,
range: R
) -> Result<&mut AsciiStr, AsAsciiStrError> where
R: SliceIndex<[Self::Inner], Output = [Self::Inner]>,
Convert a subslice to an ASCII slice.
unsafe fn as_mut_ascii_str_unchecked(&mut self) -> &mut AsciiStr
Convert to a mutable ASCII slice without checking for non-ASCII characters.
Provided methods
fn as_mut_ascii_str(&mut self) -> Result<&mut AsciiStr, AsAsciiStrError>
Convert to a mutable ASCII slice.
Implementations on Foreign Types
impl<'a, T: ?Sized> AsMutAsciiStr for &'a mut T where
T: AsMutAsciiStr,
[src]
T: AsMutAsciiStr,
fn slice_ascii_mut<R>(
&mut self,
range: R
) -> Result<&mut AsciiStr, AsAsciiStrError> where
R: SliceIndex<[Self::Inner], Output = [Self::Inner]>,
[src]
&mut self,
range: R
) -> Result<&mut AsciiStr, AsAsciiStrError> where
R: SliceIndex<[Self::Inner], Output = [Self::Inner]>,
unsafe fn as_mut_ascii_str_unchecked(&mut self) -> &mut AsciiStr
[src]
impl AsMutAsciiStr for [AsciiChar]
[src]
fn slice_ascii_mut<R>(
&mut self,
range: R
) -> Result<&mut AsciiStr, AsAsciiStrError> where
R: SliceIndex<[AsciiChar], Output = [AsciiChar]>,
[src]
&mut self,
range: R
) -> Result<&mut AsciiStr, AsAsciiStrError> where
R: SliceIndex<[AsciiChar], Output = [AsciiChar]>,
unsafe fn as_mut_ascii_str_unchecked(&mut self) -> &mut AsciiStr
[src]
impl AsMutAsciiStr for [u8]
[src]
fn slice_ascii_mut<R>(
&mut self,
range: R
) -> Result<&mut AsciiStr, AsAsciiStrError> where
R: SliceIndex<[u8], Output = [u8]>,
[src]
&mut self,
range: R
) -> Result<&mut AsciiStr, AsAsciiStrError> where
R: SliceIndex<[u8], Output = [u8]>,
fn as_mut_ascii_str(&mut self) -> Result<&mut AsciiStr, AsAsciiStrError>
[src]
unsafe fn as_mut_ascii_str_unchecked(&mut self) -> &mut AsciiStr
[src]
impl AsMutAsciiStr for str
[src]
fn slice_ascii_mut<R>(
&mut self,
range: R
) -> Result<&mut AsciiStr, AsAsciiStrError> where
R: SliceIndex<[u8], Output = [u8]>,
[src]
&mut self,
range: R
) -> Result<&mut AsciiStr, AsAsciiStrError> where
R: SliceIndex<[u8], Output = [u8]>,
fn as_mut_ascii_str(&mut self) -> Result<&mut AsciiStr, AsAsciiStrError>
[src]
unsafe fn as_mut_ascii_str_unchecked(&mut self) -> &mut AsciiStr
[src]
Implementors
impl AsMutAsciiStr for AsciiStr
[src]
fn slice_ascii_mut<R>(
&mut self,
range: R
) -> Result<&mut AsciiStr, AsAsciiStrError> where
R: SliceIndex<[AsciiChar], Output = [AsciiChar]>,
[src]
&mut self,
range: R
) -> Result<&mut AsciiStr, AsAsciiStrError> where
R: SliceIndex<[AsciiChar], Output = [AsciiChar]>,