pub struct FieldDecl {
pub name: String,
pub type_hint: Option<String>,
pub constraints: Constraints,
pub block: bool,
}Expand description
One declaration from a !fields line: name(type)[constraints].
Fields§
§name: StringField name. Compared by exact Unicode scalar sequence (§5.1).
type_hint: Option<String>The (type) production only. type:<name> lives in constraints;
use FieldDecl::type_name for the effective hint (§8.2).
constraints: ConstraintsParsed by the SYNX constraint parser (§5.2). Not enforced unless the caller opts into validating mode (§8.4).
block: boolThe SYNXL-only block flag (§5.3).
Implementations§
Trait Implementations§
impl StructuralPartialEq for FieldDecl
Auto Trait Implementations§
impl Freeze for FieldDecl
impl RefUnwindSafe for FieldDecl
impl Send for FieldDecl
impl Sync for FieldDecl
impl Unpin for FieldDecl
impl UnsafeUnpin for FieldDecl
impl UnwindSafe for FieldDecl
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