pub enum ExpandDecl {
Param(ExpandParamDecl),
Return(ExpandReturnDecl),
}Expand description
Unifies the two boundary decls into one type so an adapter’s expand can
expose a single entry point — the boundary-decl peer of its class
declarator.
Deliberately no impl From<syn::Type> for ExpandDecl — a bare
syn::Type alone doesn’t say which direction it describes, so every
declaration names its direction via the matching constructor macro:
.expand(prebindgen_registry::expand_param!(Summary)...),
.expand(prebindgen_registry::expand_return!(Sample)...).
Variants§
Param(ExpandParamDecl)
Return(ExpandReturnDecl)
Trait Implementations§
Source§impl From<ExpandParamDecl> for ExpandDecl
impl From<ExpandParamDecl> for ExpandDecl
Source§fn from(d: ExpandParamDecl) -> Self
fn from(d: ExpandParamDecl) -> Self
Converts to this type from the input type.
Source§impl From<ExpandReturnDecl> for ExpandDecl
impl From<ExpandReturnDecl> for ExpandDecl
Source§fn from(d: ExpandReturnDecl) -> Self
fn from(d: ExpandReturnDecl) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Send for ExpandDecl
impl !Sync for ExpandDecl
impl Freeze for ExpandDecl
impl RefUnwindSafe for ExpandDecl
impl Unpin for ExpandDecl
impl UnsafeUnpin for ExpandDecl
impl UnwindSafe for ExpandDecl
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> 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