pub enum LayoutRule {
SameBlock(usize),
Continuation(usize),
CloseBlock(usize),
}Expand description
A layout rule describes how indentation affects block structure in OxiLean.
Variants§
SameBlock(usize)
Lines at exactly this column continue the same block.
Continuation(usize)
Lines strictly to the right of this column are continuations.
CloseBlock(usize)
Lines strictly to the left of this column close the block.
Implementations§
Trait Implementations§
Source§impl Clone for LayoutRule
impl Clone for LayoutRule
Source§fn clone(&self) -> LayoutRule
fn clone(&self) -> LayoutRule
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 LayoutRule
impl Debug for LayoutRule
Source§impl PartialEq for LayoutRule
impl PartialEq for LayoutRule
impl Eq for LayoutRule
impl StructuralPartialEq for LayoutRule
Auto Trait Implementations§
impl Freeze for LayoutRule
impl RefUnwindSafe for LayoutRule
impl Send for LayoutRule
impl Sync for LayoutRule
impl Unpin for LayoutRule
impl UnsafeUnpin for LayoutRule
impl UnwindSafe for LayoutRule
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