pub struct Source(/* private fields */);Expand description
One source of a rule.
Implementations§
Source§impl Source
impl Source
Sourcepub fn path(&self) -> Option<QualifiedName>
pub fn path(&self) -> Option<QualifiedName>
The context variable and optional element, as in src.name.
pub fn type_annotation(&self) -> Option<TypeAnnotation>
Sourcepub fn cardinality(&self) -> Option<(String, String)>
pub fn cardinality(&self) -> Option<(String, String)>
(min, max) where max is * or a number.
pub fn default_value(&self) -> Option<DefaultClause>
pub fn list_mode(&self) -> Option<ListMode>
pub fn alias(&self) -> Option<String>
pub fn where_clause(&self) -> Option<Expr>
pub fn check_clause(&self) -> Option<Expr>
pub fn log_clause(&self) -> Option<Expr>
Trait Implementations§
Source§impl AstNode for Source
impl AstNode for Source
fn can_cast(kind: SyntaxKind) -> bool
fn cast(node: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
impl Eq for Source
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl !RefUnwindSafe for Source
impl !Send for Source
impl !Sync for Source
impl !UnwindSafe for Source
impl Freeze for Source
impl Unpin for Source
impl UnsafeUnpin for Source
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