[−][src]Struct ion_c_sys::string::StrSliceRef
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]
fn clone(&self) -> StrSliceRef<'a>[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<'a> Copy for StrSliceRef<'a>[src]
impl<'a> Debug for StrSliceRef<'a>[src]
impl<'_> Deref for StrSliceRef<'_>[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,