[][src]Struct runestick::RawStr

#[repr(C)]pub struct RawStr { /* fields omitted */ }

A raw static string.

We define and use this instead of relying on &'static str (which should have a similar layout) because we want to allow static construction of the RawStr through a C-ffi.

Implementations

impl RawStr[src]

pub const fn from_str(s: &'static str) -> Self[src]

Construct from a static string.

Trait Implementations

impl Clone for RawStr[src]

impl Copy for RawStr[src]

impl Debug for RawStr[src]

impl Deref for RawStr[src]

RawStr derefs into a str.

type Target = str

The resulting type after dereferencing.

impl Display for RawStr[src]

impl From<&'static str> for RawStr[src]

impl IntoComponent for RawStr[src]

impl<'_> IntoComponent for &'_ RawStr[src]

impl Send for RawStr[src]

impl Sync for RawStr[src]

Auto Trait Implementations

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> ToString for T where
    T: Display + ?Sized
[src]

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.