pub struct ClassDeclaration {
pub name: String,
pub type_parameters: Vec<TypeParameter>,
pub extends: Option<Type>,
pub implements: Vec<Type>,
pub body: ClassBody,
}
Expand description
Class declaration
Fields§
§name: String
§type_parameters: Vec<TypeParameter>
§extends: Option<Type>
§implements: Vec<Type>
§body: ClassBody
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
Auto Trait Implementations§
impl Freeze for ClassDeclaration
impl RefUnwindSafe for ClassDeclaration
impl Send for ClassDeclaration
impl Sync for ClassDeclaration
impl Unpin 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