pub struct InterfaceSpec {
pub modifiers: Modifiers,
pub name: String,
pub annotations: Vec<AnnotationSpec>,
pub elements: Elements,
pub extends: Vec<ClassType>,
}
Fields§
§modifiers: Modifiers
§name: String
§annotations: Vec<AnnotationSpec>
§elements: Elements
§extends: Vec<ClassType>
Implementations§
Source§impl InterfaceSpec
impl InterfaceSpec
pub fn new(modifiers: Modifiers, name: &str) -> InterfaceSpec
pub fn push_annotation(&mut self, annotation: &AnnotationSpec)
pub fn extends<T>(&mut self, ty: T)
Trait Implementations§
Source§impl Clone for InterfaceSpec
impl Clone for InterfaceSpec
Source§fn clone(&self) -> InterfaceSpec
fn clone(&self) -> InterfaceSpec
Returns a copy 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 moreSource§impl ContainerSpec for InterfaceSpec
impl ContainerSpec for InterfaceSpec
Source§impl Debug for InterfaceSpec
impl Debug for InterfaceSpec
Source§impl From<InterfaceSpec> for Element
impl From<InterfaceSpec> for Element
Source§fn from(value: InterfaceSpec) -> Element
fn from(value: InterfaceSpec) -> Element
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InterfaceSpec
impl RefUnwindSafe for InterfaceSpec
impl Send for InterfaceSpec
impl Sync for InterfaceSpec
impl Unpin for InterfaceSpec
impl UnwindSafe for InterfaceSpec
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