[][src]Trait cmdline_words_parser::ByteString

pub trait ByteString {
    type OutSlice: ?Sized + ByteStringSlice;
    unsafe fn as_mut_bytes(&mut self) -> &mut [u8];
}

Trait representing types that can be in-place parsed (i.e. ASCII-compatible byte strings)

Associated Types

type OutSlice: ?Sized + ByteStringSlice

Output slice type (e.g str or OsStr)

Loading content...

Required methods

unsafe fn as_mut_bytes(&mut self) -> &mut [u8]

Get the string as a mutable sequence of bytes

Loading content...

Implementations on Foreign Types

impl ByteString for str[src]

Parse a rust UTF-8 string, yeilding string slices

type OutSlice = str

impl ByteString for [u8][src]

Parse a byte slice as a ASCII (or UTF-8/WTF-8/...) string, returning byte slices

type OutSlice = [u8]

impl ByteString for OsStr[src]

impl ByteString for String[src]

type OutSlice = str

Loading content...

Implementors

Loading content...