#[non_exhaustive]pub struct DelimitedBlock {
pub metadata: BlockMetadata,
pub inner: DelimitedBlockType,
pub delimiter: String,
pub title: Title,
pub location: Location,
}Expand description
A DelimitedBlock represents a delimited block in a document.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.metadata: BlockMetadata§inner: DelimitedBlockType§delimiter: String§title: Title§location: LocationImplementations§
Source§impl DelimitedBlock
impl DelimitedBlock
Sourcepub fn new(
inner: DelimitedBlockType,
delimiter: String,
location: Location,
) -> Self
pub fn new( inner: DelimitedBlockType, delimiter: String, location: Location, ) -> Self
Create a new delimited block.
Sourcepub fn with_metadata(self, metadata: BlockMetadata) -> Self
pub fn with_metadata(self, metadata: BlockMetadata) -> Self
Set the metadata.
Sourcepub fn with_title(self, title: Title) -> Self
pub fn with_title(self, title: Title) -> Self
Set the title.
Trait Implementations§
Source§impl Clone for DelimitedBlock
impl Clone for DelimitedBlock
Source§fn clone(&self) -> DelimitedBlock
fn clone(&self) -> DelimitedBlock
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 DelimitedBlock
impl Debug for DelimitedBlock
Source§impl PartialEq for DelimitedBlock
impl PartialEq for DelimitedBlock
Source§impl Serialize for DelimitedBlock
impl Serialize for DelimitedBlock
impl StructuralPartialEq for DelimitedBlock
Auto Trait Implementations§
impl Freeze for DelimitedBlock
impl RefUnwindSafe for DelimitedBlock
impl Send for DelimitedBlock
impl Sync for DelimitedBlock
impl Unpin for DelimitedBlock
impl UnwindSafe for DelimitedBlock
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