pub struct WasmEdgeString { /* private fields */ }
Expand description
Struct of WasmEdge String.
Implementations§
Source§impl WasmEdgeString
impl WasmEdgeString
Sourcepub unsafe fn into_raw(self) -> WasmEdge_String
pub unsafe fn into_raw(self) -> WasmEdge_String
§Safety
After calling this function, the caller is responsible for managing the lifetime of ffi::WasmEdge_String`` and should call
ffi::WasmEdge_StringDelete`` at the appropriate time.
Sourcepub unsafe fn from_raw(s: WasmEdge_String) -> Self
pub unsafe fn from_raw(s: WasmEdge_String) -> Self
§Safety
This function takes ownership of s
, so do not call ffi::WasmEdge_StringDelete
on s
after this.
Trait Implementations§
Source§impl AsMut<WasmEdge_String> for WasmEdgeString
impl AsMut<WasmEdge_String> for WasmEdgeString
Source§fn as_mut(&mut self) -> &mut WasmEdge_String
fn as_mut(&mut self) -> &mut WasmEdge_String
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<WasmEdge_String> for WasmEdgeString
impl AsRef<WasmEdge_String> for WasmEdgeString
Source§fn as_ref(&self) -> &WasmEdge_String
fn as_ref(&self) -> &WasmEdge_String
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Debug for WasmEdgeString
impl Debug for WasmEdgeString
Source§impl Drop for WasmEdgeString
impl Drop for WasmEdgeString
Source§impl From<&WasmEdgeString> for &CStr
impl From<&WasmEdgeString> for &CStr
Source§fn from(s: &WasmEdgeString) -> Self
fn from(s: &WasmEdgeString) -> Self
Converts to this type from the input type.
Source§impl From<&WasmEdgeString> for String
impl From<&WasmEdgeString> for String
Source§fn from(s: &WasmEdgeString) -> Self
fn from(s: &WasmEdgeString) -> Self
Converts to this type from the input type.
Source§impl From<WasmEdgeString> for &CStr
impl From<WasmEdgeString> for &CStr
Source§fn from(s: WasmEdgeString) -> Self
fn from(s: WasmEdgeString) -> Self
Converts to this type from the input type.
Source§impl From<WasmEdgeString> for String
impl From<WasmEdgeString> for String
Source§fn from(s: WasmEdgeString) -> Self
fn from(s: WasmEdgeString) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WasmEdgeString
impl PartialEq for WasmEdgeString
impl Eq for WasmEdgeString
Auto Trait Implementations§
impl Freeze for WasmEdgeString
impl RefUnwindSafe for WasmEdgeString
impl Send for WasmEdgeString
impl Sync for WasmEdgeString
impl Unpin for WasmEdgeString
impl UnwindSafe for WasmEdgeString
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more