Struct std::sys::unix::os_str::Slice

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

Fields§

§inner: [u8]

Implementations§

source§

impl Slice

source

pub fn as_os_str_bytes(&self) -> &[u8]

source

pub unsafe fn from_os_str_bytes_unchecked(s: &[u8]) -> &Slice

source

pub fn from_str(s: &str) -> &Slice

source

pub fn to_str(&self) -> Result<&str, Utf8Error>

source

pub fn to_string_lossy(&self) -> Cow<'_, str>

source

pub fn to_owned(&self) -> Buf

source

pub fn clone_into(&self, buf: &mut Buf)

source

pub fn into_box(&self) -> Box<Slice>

source

pub fn empty_box() -> Box<Slice>

source

pub fn into_arc(&self) -> Arc<Slice>

source

pub fn into_rc(&self) -> Rc<Slice>

source

pub fn make_ascii_lowercase(&mut self)

source

pub fn make_ascii_uppercase(&mut self)

source

pub fn to_ascii_lowercase(&self) -> Buf

source

pub fn to_ascii_uppercase(&self) -> Buf

source

pub fn is_ascii(&self) -> bool

source

pub fn eq_ignore_ascii_case(&self, other: &Self) -> bool

Trait Implementations§

source§

impl Debug for Slice

source§

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

Formats the value using the given formatter. Read more
source§

impl Display for Slice

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for Slice

§

impl Send for Slice

§

impl !Sized for Slice

§

impl Sync for Slice

§

impl Unpin for Slice

§

impl UnwindSafe for Slice

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

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

Mutably borrows from an owned value. Read more
source§

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

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more