[][src]Enum yamlette::model::rope::Rope

pub enum Rope {
    Empty,
    Node([Node; 1]),
    Many(Vec<Node>),
}

Variants

EmptyNode([Node; 1])Many(Vec<Node>)

Methods

impl Rope[src]

pub fn with_capacity(size: usize) -> Rope[src]

pub fn clear(&mut self)[src]

pub fn len(&self) -> usize[src]

pub fn is_multiline(&self) -> bool[src]

pub fn is_dict_block(&self) -> bool[src]

pub fn is_flow_opening(&self) -> bool[src]

pub fn is_flow_dict_opening(&self) -> bool[src]

pub fn last_line_bytes_len(&self, renderer: &Renderer) -> (usize, bool)[src]

pub fn first_line_bytes_len(&self, renderer: &Renderer) -> (usize, bool)[src]

pub fn bytes_len(&self, renderer: &Renderer) -> usize[src]

pub fn render(self, renderer: &Renderer) -> Vec<u8>[src]

pub fn push(&mut self, node: Node)[src]

pub fn indent(&mut self, len: usize)[src]

pub fn knit(&mut self, rope: &mut Rope)[src]

pub fn unrope<'a, 'b, 'c>(
    &'a self,
    ptr: &'b mut *const [Node],
    renderer: &'c Renderer,
    index: usize,
    threshold: usize
) -> (usize, usize, bool)
[src]

Trait Implementations

impl From<Node> for Rope[src]

impl From<Vec<Node>> for Rope[src]

impl Debug for Rope[src]

Auto Trait Implementations

impl Send for Rope

impl Sync for Rope

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]