pub struct RecordDeclaration {
pub name: String,
pub modifiers: Vec<String>,
pub parameters: Vec<Parameter>,
pub implements: Vec<String>,
pub members: Vec<Member>,
pub span: Range<usize>,
}Expand description
记录声明
Fields§
§name: String记录名
modifiers: Vec<String>修饰符
parameters: Vec<Parameter>参数列表 (C# record 有主构造函数)
implements: Vec<String>实现的接口
members: Vec<Member>成员
span: Range<usize>源码位置
Trait Implementations§
Source§impl Clone for RecordDeclaration
impl Clone for RecordDeclaration
Source§fn clone(&self) -> RecordDeclaration
fn clone(&self) -> RecordDeclaration
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 RecordDeclaration
impl Debug for RecordDeclaration
Source§impl<'de> Deserialize<'de> for RecordDeclaration
impl<'de> Deserialize<'de> for RecordDeclaration
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 RecordDeclaration
impl PartialEq for RecordDeclaration
Source§impl Serialize for RecordDeclaration
impl Serialize for RecordDeclaration
impl StructuralPartialEq for RecordDeclaration
Auto Trait Implementations§
impl Freeze for RecordDeclaration
impl RefUnwindSafe for RecordDeclaration
impl Send for RecordDeclaration
impl Sync for RecordDeclaration
impl Unpin for RecordDeclaration
impl UnwindSafe for RecordDeclaration
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