pub struct StructDeclaration {
pub name: String,
pub modifiers: Vec<String>,
pub implements: Vec<String>,
pub members: Vec<Member>,
pub span: Range<usize>,
}Expand description
结构体声明
Fields§
§name: String结构体名
modifiers: Vec<String>修饰符
implements: Vec<String>实现的接口
members: Vec<Member>成员
span: Range<usize>源码位置
Trait Implementations§
Source§impl Clone for StructDeclaration
impl Clone for StructDeclaration
Source§fn clone(&self) -> StructDeclaration
fn clone(&self) -> StructDeclaration
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 StructDeclaration
impl Debug for StructDeclaration
Source§impl<'de> Deserialize<'de> for StructDeclaration
impl<'de> Deserialize<'de> for StructDeclaration
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 StructDeclaration
impl PartialEq for StructDeclaration
Source§impl Serialize for StructDeclaration
impl Serialize for StructDeclaration
impl StructuralPartialEq for StructDeclaration
Auto Trait Implementations§
impl Freeze for StructDeclaration
impl RefUnwindSafe for StructDeclaration
impl Send for StructDeclaration
impl Sync for StructDeclaration
impl Unpin for StructDeclaration
impl UnwindSafe for StructDeclaration
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