Struct Slice

#[repr(transparent)]
pub struct Slice { pub inner: [u8] }

Fields

inner: [u8]

Implementations

impl Slice

fn as_encoded_bytes(&self) -> &[u8]
unsafe fn from_encoded_bytes_unchecked(s: &[u8]) -> &Slice
fn check_public_boundary(&self, index: usize)
fn try_check_public_boundary(&self, index: usize) -> Option<()>
fn from_str(s: &str) -> &Slice
fn to_str(&self) -> Result<&str, Utf8Error>
fn to_string_lossy(&self) -> Cow<'_, str>
fn to_owned(&self) -> Buf
fn clone_into(&self, buf: &mut Buf)
fn empty_box() -> Box<Slice>
fn into_arc(&self) -> Arc<Slice>
fn into_rc(&self) -> Rc<Slice>
fn make_ascii_lowercase(&mut self)
fn make_ascii_uppercase(&mut self)
fn to_ascii_lowercase(&self) -> Buf
fn to_ascii_uppercase(&self) -> Buf
fn is_ascii(&self) -> bool
fn eq_ignore_ascii_case(&self, other: &Self) -> bool

Trait Implementations

impl CloneToUninit for Slice

unsafe fn clone_to_uninit(&self, dst: *mut u8)

impl Debug for Slice

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Display for Slice

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl !Sized for Slice

impl Freeze for Slice

impl RefUnwindSafe for Slice

impl Send for Slice

impl Sync for Slice

impl Unpin for Slice

impl UnsafeUnpin for Slice

impl UnwindSafe for Slice

Blanket Implementations

impl<T> Any for Slice where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for Slice where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for Slice where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> SizeHint for Slice where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> ToString for Slice where T: Display + ?Sized,

fn to_string(&self) -> String