[−][src]Struct cffi::StringMarshaler
Trait Implementations
impl<'a> FromForeign<Slice<u8>, String> for StringMarshaler
[src]
type Error = Box<dyn Error>
unsafe fn from_foreign(key: Slice<u8>) -> Result<String, Self::Error>
[src]
impl InputType for StringMarshaler
[src]
impl ReturnType for StringMarshaler
[src]
impl ToForeign<Option<String>, Slice<u8>> for StringMarshaler
[src]
type Error = Box<dyn Error>
fn to_foreign(option: Option<String>) -> Result<Slice<u8>, Self::Error>
[src]
impl ToForeign<Result<String, Box<dyn Error + 'static>>, Slice<u8>> for StringMarshaler
[src]
type Error = Box<dyn Error>
fn to_foreign(
result: Result<String, Box<dyn Error>>
) -> Result<Slice<u8>, Self::Error>
[src]
result: Result<String, Box<dyn Error>>
) -> Result<Slice<u8>, Self::Error>
impl ToForeign<String, Slice<u8>> for StringMarshaler
[src]
type Error = Infallible
fn to_foreign(string: String) -> Result<Slice<u8>, Self::Error>
[src]
Auto Trait Implementations
impl RefUnwindSafe for StringMarshaler
impl Send for StringMarshaler
impl Sync for StringMarshaler
impl Unpin for StringMarshaler
impl UnwindSafe for StringMarshaler
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, 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>,