pub struct DefStructStmt {
pub name: String,
pub param_defs: Vec<ParamGroupWithStructFieldType>,
pub dom_facts: Vec<OrAndChainAtomicFact>,
pub fields: Vec<(String, StructFieldType)>,
pub facts: Vec<OrAndChainAtomicFact>,
pub line_file: LineFile,
}Fields§
§name: String§param_defs: Vec<ParamGroupWithStructFieldType>§dom_facts: Vec<OrAndChainAtomicFact>§fields: Vec<(String, StructFieldType)>§facts: Vec<OrAndChainAtomicFact>§line_file: LineFileImplementations§
Source§impl DefStructStmt
impl DefStructStmt
pub fn new( name: String, param_defs: Vec<ParamGroupWithStructFieldType>, dom_facts: Vec<OrAndChainAtomicFact>, fields: Vec<(String, StructFieldType)>, facts: Vec<OrAndChainAtomicFact>, line_file: LineFile, ) -> Self
pub fn number_of_params(&self) -> usize
Sourcepub fn get_params(&self) -> Vec<String>
pub fn get_params(&self) -> Vec<String>
按定义顺序展开所有类型形参名(与 struct T(...) 中参数顺序一致)。
Source§impl DefStructStmt
impl DefStructStmt
pub fn stmt_type_name(&self) -> String
Trait Implementations§
Source§impl Clone for DefStructStmt
impl Clone for DefStructStmt
Source§fn clone(&self) -> DefStructStmt
fn clone(&self) -> DefStructStmt
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 Display for DefStructStmt
impl Display for DefStructStmt
Source§impl From<DefStructStmt> for Stmt
impl From<DefStructStmt> for Stmt
Source§fn from(v: DefStructStmt) -> Self
fn from(v: DefStructStmt) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DefStructStmt
impl RefUnwindSafe for DefStructStmt
impl !Send for DefStructStmt
impl !Sync for DefStructStmt
impl Unpin for DefStructStmt
impl UnsafeUnpin for DefStructStmt
impl UnwindSafe for DefStructStmt
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