Struct Editor
pub struct Editor<'a> {
pub html: &'a str,
pub width: u32,
pub height: u32,
pub resizable: bool,
}Expand description
A web editor: one HTML page and its size in logical pixels.
RAVET injects its editor client into the page, which talks to the plug-in through the editor protocol. The page is limited to 1 MiB.
Fields§
§html: &'a str§width: u32§height: u32§resizable: boolHosts may enlarge the editor up to four times its size in each direction.
Trait Implementations§
impl<'a> Copy for Editor<'a>
impl<'a> Eq for Editor<'a>
impl<'a> StructuralPartialEq for Editor<'a>
Auto Trait Implementations§
impl<'a> Freeze for Editor<'a>
impl<'a> RefUnwindSafe for Editor<'a>
impl<'a> Send for Editor<'a>
impl<'a> Sync for Editor<'a>
impl<'a> Unpin for Editor<'a>
impl<'a> UnsafeUnpin for Editor<'a>
impl<'a> UnwindSafe for Editor<'a>
Blanket Implementations§
impl<T> AutoreleaseSafe for T
§impl<T> BorrowMut<T> for T
impl<T> BorrowMut<T> for T
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more