pub struct PredDecl {
pub name: String,
pub types: Vec<TypeRef>,
pub columns: Vec<PredColumn>,
pub is_private: bool,
}Expand description
Predicate declaration
Fields§
§name: StringPredicate name.
types: Vec<TypeRef>Column types.
columns: Vec<PredColumn>Declared columns, including optional names.
is_private: boolWhether this predicate is module-private.
Implementations§
Source§impl PredDecl
impl PredDecl
Sourcepub fn schema_columns(&self) -> Vec<PredColumn>
pub fn schema_columns(&self) -> Vec<PredColumn>
Return the effective declared columns, including optional source names.
Parsed declarations populate columns; callers constructing the AST
directly may supply the equivalent unnamed schema through types.
Trait Implementations§
impl StructuralPartialEq for PredDecl
Auto Trait Implementations§
impl Freeze for PredDecl
impl RefUnwindSafe for PredDecl
impl Send for PredDecl
impl Sync for PredDecl
impl Unpin for PredDecl
impl UnsafeUnpin for PredDecl
impl UnwindSafe for PredDecl
Blanket Implementations§
impl<T> Allocation for T
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