pub trait Symbol {
fn len(&self) -> usize;
fn len_chars(&self) -> usize;
fn contained_at(&self, value: &[u8], index: usize) -> bool;
fn same_as_slice(&self, _: &[u8]) -> bool;
fn as_slice(&self) -> &[u8];
fn as_ptr(&self) -> *const u8;
fn new_vec(&self) -> Vec<u8>;
fn to_vec(self) -> Vec<u8>;
fn read<Reader: Read>(&self, reader: &mut Reader) -> Option<usize> where Self: Sized { ... }
fn read_at<Reader: Read>(&self,
at: usize,
reader: &mut Reader)
-> Option<usize> where Self: Sized { ... }
unsafe fn copy_to_ptr(&self, dst: *mut u8) -> *mut u8 { ... }
unsafe fn copy_to_ptr_times(&self, dst: *mut u8, times: usize) -> *mut u8 { ... }
}
Required Methods
Provided Methods
Implementors
impl Symbol for Char
impl Symbol for Word
impl Symbol for Rune