pub struct Input {
attrs: Vec<Attribute>,
generics: Generics,
trait_path: Path,
self_ty: Ident,
unsafety: Option<Unsafe>,
items: Vec<ImplItem>,
meta_dynamic: Option<MetaDynamic>,
}
Expand description
The parsed input for the object impl attributes..
This is used for both the #[object_subclass]
and #[object_interface]
attributes.
Fields§
§attrs: Vec<Attribute>
§generics: Generics
§trait_path: Path
§self_ty: Ident
§unsafety: Option<Unsafe>
§items: Vec<ImplItem>
§meta_dynamic: Option<MetaDynamic>
Implementations§
source§impl Input
impl Input
sourcepub fn parse_interface(input: ParseStream<'_>) -> Result<Self>
pub fn parse_interface(input: ParseStream<'_>) -> Result<Self>
Parse an #[object_interface]
attribute.
sourcepub fn parse_subclass(input: ParseStream<'_>) -> Result<Self>
pub fn parse_subclass(input: ParseStream<'_>) -> Result<Self>
Parse an #[object_subclass]
attribute.
sourcefn parse(kind: AttrKind, input: ParseStream<'_>) -> Result<Self>
fn parse(kind: AttrKind, input: ParseStream<'_>) -> Result<Self>
Parse an #[object_subclass]
or #[object_interface]
depending on the attribute kind.
Auto Trait Implementations§
impl Freeze for Input
impl RefUnwindSafe for Input
impl !Send for Input
impl !Sync for Input
impl Unpin for Input
impl UnwindSafe for Input
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