Skip to main content

AsUstr

Trait AsUstr 

Source
pub trait AsUstr {
    // Required method
    fn as_ustr(&self) -> &Ustr;
}
Expand description

Used for cheap conversion from into &Ustr

Required Methods§

Source

fn as_ustr(&self) -> &Ustr

Perform the conversion

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl AsUstr for CStr

Source§

fn as_ustr(&self) -> &Ustr

Source§

impl AsUstr for CString

Source§

fn as_ustr(&self) -> &Ustr

Implementors§