[][src]Struct ion_c_sys::string::StrSliceRef

pub struct StrSliceRef<'a> { /* fields omitted */ }

Represents a str slice that is borrowed from some source.

This struct provides the mutable borrowing context for the given slice to avoid destructive APIs from being called from the referent.

Implementations

impl<'a> StrSliceRef<'a>[src]

pub fn new<T>(_src: &'a mut T, string: &'a str) -> Self[src]

Creates a new reference to an ION_STRING mutably borrowed from src.

pub fn as_str(&self) -> &str[src]

Convenience method to get the underlying &str.

Trait Implementations

impl<'_> AsRef<str> for StrSliceRef<'_>[src]

impl<'a> Clone for StrSliceRef<'a>[src]

impl<'a> Copy for StrSliceRef<'a>[src]

impl<'a> Debug for StrSliceRef<'a>[src]

impl<'_> Deref for StrSliceRef<'_>[src]

type Target = str

The resulting type after dereferencing.

Auto Trait Implementations

impl<'a> RefUnwindSafe for StrSliceRef<'a>

impl<'a> Send for StrSliceRef<'a>

impl<'a> Sync for StrSliceRef<'a>

impl<'a> Unpin for StrSliceRef<'a>

impl<'a> !UnwindSafe for StrSliceRef<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.