[−][src]Enum yamlette::model::rope::Rope
Variants
Empty
Node([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]
&'a self,
ptr: &'b mut *const [Node],
renderer: &'c Renderer,
index: usize,
threshold: usize
) -> (usize, usize, bool)
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,