pub struct ClassDeclaration {
pub name: String,
pub modifiers: Vec<String>,
pub annotations: Vec<Annotation>,
pub extends: Option<String>,
pub implements: Vec<String>,
pub members: Vec<Member>,
pub span: Range<usize>,
}Expand description
Class declaration
Fields§
§name: StringClass name
modifiers: Vec<String>Modifiers
annotations: Vec<Annotation>Annotations
extends: Option<String>Superclass
implements: Vec<String>Implemented interfaces
members: Vec<Member>Members
span: Range<usize>Source span
Trait Implementations§
Source§impl Clone for ClassDeclaration
impl Clone for ClassDeclaration
Source§fn clone(&self) -> ClassDeclaration
fn clone(&self) -> ClassDeclaration
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 moreSource§impl Debug for ClassDeclaration
impl Debug for ClassDeclaration
Source§impl<'de> Deserialize<'de> for ClassDeclaration
impl<'de> Deserialize<'de> for ClassDeclaration
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ClassDeclaration
impl PartialEq for ClassDeclaration
Source§impl Serialize for ClassDeclaration
impl Serialize for ClassDeclaration
impl StructuralPartialEq for ClassDeclaration
Auto Trait Implementations§
impl Freeze for ClassDeclaration
impl RefUnwindSafe for ClassDeclaration
impl Send for ClassDeclaration
impl Sync for ClassDeclaration
impl Unpin for ClassDeclaration
impl UnsafeUnpin for ClassDeclaration
impl UnwindSafe for ClassDeclaration
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