Skip to main content

Wrappable

Trait Wrappable 

Source
pub trait Wrappable {
    // Required method
    fn set_wrap(&mut self, wrap: bool);
}
Expand description

Trait for objects that allow toggling line wrapping.

Required Methods§

Source

fn set_wrap(&mut self, wrap: bool)

Set whether or not displayed lines should be wrapped.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<Cursor: Wrappable> Wrappable for ViewportContext<Cursor>