pub struct RelationHeader { /* private fields */ }Implementations§
Source§impl RelationHeader
impl RelationHeader
Sourcepub fn new(name: impl Into<String>, attrs: Vec<String>) -> Self
pub fn new(name: impl Into<String>, attrs: Vec<String>) -> Self
Creates a new RelationHeader with the specified name, attributes, and
arity.
pub fn new_nameless(attrs: Vec<String>) -> Self
pub fn new_positional(name: impl Into<String>, arity: usize) -> Self
pub fn new_nameless_positional(arity: usize) -> Self
pub fn is_nameless(&self) -> bool
pub fn name(&self) -> &str
pub fn attrs(&self) -> &[String]
pub fn arity(&self) -> usize
pub fn model_type(&self) -> ModelType
Trait Implementations§
Source§impl Clone for RelationHeader
impl Clone for RelationHeader
Source§fn clone(&self) -> RelationHeader
fn clone(&self) -> RelationHeader
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 RelationHeader
impl Debug for RelationHeader
Source§impl From<usize> for RelationHeader
impl From<usize> for RelationHeader
Source§fn from(value: usize) -> RelationHeader
fn from(value: usize) -> RelationHeader
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RelationHeader
impl RefUnwindSafe for RelationHeader
impl Send for RelationHeader
impl Sync for RelationHeader
impl Unpin for RelationHeader
impl UnwindSafe for RelationHeader
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