pub struct TableBuilder<'a> { /* private fields */ }
Expand description
Builder for tables.
Implementations§
Source§impl<'a> TableBuilder<'a>
impl<'a> TableBuilder<'a>
Sourcepub fn new(identifier: Identifier) -> TableBuilder<'a>
pub fn new(identifier: Identifier) -> TableBuilder<'a>
Create a new table builder instance.
Sourcepub fn metadata<T>(self, content: T) -> Result<TableBuilder<'a>, Error>
pub fn metadata<T>(self, content: T) -> Result<TableBuilder<'a>, Error>
Set the metadata for this table.
Sourcepub fn children(
self,
children: impl IntoIterator<Item = TableBuilder<'a>>,
) -> TableBuilder<'a>
pub fn children( self, children: impl IntoIterator<Item = TableBuilder<'a>>, ) -> TableBuilder<'a>
Set the child tables for this table.
Sourcepub fn chunks(
self,
content: impl IntoIterator<Item = ChunkDesc<'a>>,
) -> TableBuilder<'a>
pub fn chunks( self, content: impl IntoIterator<Item = ChunkDesc<'a>>, ) -> TableBuilder<'a>
Set the chunks associated with this table.
Sourcepub fn identifier(&self) -> Identifier
pub fn identifier(&self) -> Identifier
Get the identifier.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TableBuilder<'a>
impl<'a> RefUnwindSafe for TableBuilder<'a>
impl<'a> Send for TableBuilder<'a>
impl<'a> Sync for TableBuilder<'a>
impl<'a> Unpin for TableBuilder<'a>
impl<'a> UnwindSafe for TableBuilder<'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