pub enum BlockDelimiter {
DoubleLineGeneric,
Delimiter(String),
Pattern(String),
}Expand description
A block delimiter. Can be a generic double line (the default), a delimiter string, or a regex pattern. If the delimiter is a double line, it will be “\r\n\r\n” if the string contains “\r\n”, otherwise “\n\n”. If the delimiter is a string, it will be used as is.
Variants§
DoubleLineGeneric
A double line delimiter, “\r\n\r\n” if the string contains “\r\n”, otherwise “\n\n”.
Delimiter(String)
A custom delimiter string.
Pattern(String)
A regex pattern. Not implemented yet.
Trait Implementations§
Source§impl Default for BlockDelimiter
impl Default for BlockDelimiter
Source§fn default() -> BlockDelimiter
fn default() -> BlockDelimiter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BlockDelimiter
impl RefUnwindSafe for BlockDelimiter
impl Send for BlockDelimiter
impl Sync for BlockDelimiter
impl Unpin for BlockDelimiter
impl UnwindSafe for BlockDelimiter
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