pub struct SchemaBlock<'a> {
pub span_range: Range<usize>,
pub input: &'a str,
pub blocks: Vec<TopLevelBlock>,
}
Expand description
Represents the entire structure of a parsed DBML file.
Fields§
§span_range: Range<usize>
The span range of the entire parsed DBML structure in the source text.
input: &'a str
The input source content.
blocks: Vec<TopLevelBlock>
A vector of top-level blocks comprising the parsed DBML structure.
Implementations§
Source§impl<'a> SchemaBlock<'a>
impl<'a> SchemaBlock<'a>
pub fn projects(&self) -> Vec<&ProjectBlock>
pub fn tables(&self) -> Vec<&TableBlock>
pub fn table_groups(&self) -> Vec<&TableGroupBlock>
pub fn refs(&self) -> Vec<&RefBlock>
pub fn enums(&self) -> Vec<&EnumBlock>
Trait Implementations§
Source§impl<'a> Clone for SchemaBlock<'a>
impl<'a> Clone for SchemaBlock<'a>
Source§fn clone(&self) -> SchemaBlock<'a>
fn clone(&self) -> SchemaBlock<'a>
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<'a> Debug for SchemaBlock<'a>
impl<'a> Debug for SchemaBlock<'a>
Source§impl<'a> Default for SchemaBlock<'a>
impl<'a> Default for SchemaBlock<'a>
Source§fn default() -> SchemaBlock<'a>
fn default() -> SchemaBlock<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for SchemaBlock<'a>
impl<'a> RefUnwindSafe for SchemaBlock<'a>
impl<'a> Send for SchemaBlock<'a>
impl<'a> Sync for SchemaBlock<'a>
impl<'a> Unpin for SchemaBlock<'a>
impl<'a> UnwindSafe for SchemaBlock<'a>
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