pub struct ScriptInfoOps<'a> { /* private fields */ }Expand description
Fluent API for managing Script Info properties
Implementations§
Source§impl<'a> ScriptInfoOps<'a>
impl<'a> ScriptInfoOps<'a>
Sourcepub fn set(self, property: &str, value: &str) -> Result<&'a mut EditorDocument>
pub fn set(self, property: &str, value: &str) -> Result<&'a mut EditorDocument>
Set a script info property
Sourcepub fn delete(self, property: &str) -> Result<&'a mut EditorDocument>
pub fn delete(self, property: &str) -> Result<&'a mut EditorDocument>
Delete a script info property
Sourcepub fn title(self, title: &str) -> Result<&'a mut EditorDocument>
pub fn title(self, title: &str) -> Result<&'a mut EditorDocument>
Set the title
Set the author
Get the author
Sourcepub fn resolution(
self,
width: u32,
height: u32,
) -> Result<&'a mut EditorDocument>
pub fn resolution( self, width: u32, height: u32, ) -> Result<&'a mut EditorDocument>
Set the resolution
Sourcepub fn wrap_style(self, style: u8) -> Result<&'a mut EditorDocument>
pub fn wrap_style(self, style: u8) -> Result<&'a mut EditorDocument>
Set the wrap style
Sourcepub fn get_wrap_style(&self) -> Result<Option<u8>>
pub fn get_wrap_style(&self) -> Result<Option<u8>>
Get the wrap style
Sourcepub fn scaled_border_and_shadow(
self,
scaled: bool,
) -> Result<&'a mut EditorDocument>
pub fn scaled_border_and_shadow( self, scaled: bool, ) -> Result<&'a mut EditorDocument>
Set scaled border and shadow
Sourcepub fn get_scaled_border_and_shadow(&self) -> Result<Option<bool>>
pub fn get_scaled_border_and_shadow(&self) -> Result<Option<bool>>
Get scaled border and shadow setting
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ScriptInfoOps<'a>
impl<'a> !Sync for ScriptInfoOps<'a>
impl<'a> !UnwindSafe for ScriptInfoOps<'a>
impl<'a> Freeze for ScriptInfoOps<'a>
impl<'a> Send for ScriptInfoOps<'a>
impl<'a> Unpin for ScriptInfoOps<'a>
impl<'a> UnsafeUnpin for ScriptInfoOps<'a>
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