pub struct InterfaceDef<Mods, Name, Body> {
pub mods: Mods,
pub name: Name,
pub body: Body,
}Expand description
Declares an interface
Fields§
§mods: ModsThe modifiers. Must be a sequence
name: NameThe class name. Must be writable.
To declare a superclass or interfaces, use Extends or Implements
body: BodyThe body of the class
Trait Implementations§
Source§impl<Mods: Clone, Name: Clone, Body: Clone> Clone for InterfaceDef<Mods, Name, Body>
impl<Mods: Clone, Name: Clone, Body: Clone> Clone for InterfaceDef<Mods, Name, Body>
Source§fn clone(&self) -> InterfaceDef<Mods, Name, Body>
fn clone(&self) -> InterfaceDef<Mods, Name, Body>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<Mods, Name, Body> Freeze for InterfaceDef<Mods, Name, Body>
impl<Mods, Name, Body> RefUnwindSafe for InterfaceDef<Mods, Name, Body>
impl<Mods, Name, Body> Send for InterfaceDef<Mods, Name, Body>
impl<Mods, Name, Body> Sync for InterfaceDef<Mods, Name, Body>
impl<Mods, Name, Body> Unpin for InterfaceDef<Mods, Name, Body>
impl<Mods, Name, Body> UnwindSafe for InterfaceDef<Mods, Name, Body>
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