pub struct ConvertSourceDecl { /* private fields */ }Expand description
One conversion source, accepted by ConvertDecl::input /
ConvertDecl::output. Built by fun! — a
#[prebindgen] conversion fn (bare ident, signature read from the
registry) or a binding-local one (fun!(crate::f) +
.sig(sig!(…)), the one vocabulary for locally
defined callables; a Result<_, E> return states the error channel) —
or by the direction-stating macros from! /
try_from! / into! /
try_into! (a core::convert trait conversion
with a stated representation type).
Implementations§
Source§impl ConvertSourceDecl
impl ConvertSourceDecl
Sourcepub fn from_type(ty: Type) -> ConvertSourceDecl
pub fn from_type(ty: Type) -> ConvertSourceDecl
from!(T) — input via T: Into<Self>.
Sourcepub fn try_from_type(ty: Type) -> ConvertSourceDecl
pub fn try_from_type(ty: Type) -> ConvertSourceDecl
try_from!(T) — input via T: TryInto<Self>.
Sourcepub fn into_type(ty: Type) -> ConvertSourceDecl
pub fn into_type(ty: Type) -> ConvertSourceDecl
into!(T) — output via Self: Into<T>.
Sourcepub fn try_into_type(ty: Type) -> ConvertSourceDecl
pub fn try_into_type(ty: Type) -> ConvertSourceDecl
try_into!(T) — output via Self: TryInto<T>.
Trait Implementations§
Source§impl Clone for ConvertSourceDecl
impl Clone for ConvertSourceDecl
Source§fn clone(&self) -> ConvertSourceDecl
fn clone(&self) -> ConvertSourceDecl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl From<FunctionDecl> for ConvertSourceDecl
impl From<FunctionDecl> for ConvertSourceDecl
Source§fn from(decl: FunctionDecl) -> ConvertSourceDecl
fn from(decl: FunctionDecl) -> ConvertSourceDecl
Converts to this type from the input type.
Auto Trait Implementations§
impl !Send for ConvertSourceDecl
impl !Sync for ConvertSourceDecl
impl Freeze for ConvertSourceDecl
impl RefUnwindSafe for ConvertSourceDecl
impl Unpin for ConvertSourceDecl
impl UnsafeUnpin for ConvertSourceDecl
impl UnwindSafe for ConvertSourceDecl
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more