pub struct CreateStyleSheetBuilder { /* private fields */ }Expand description
Builder for CreateStyleSheet.
Implementations§
Source§impl CreateStyleSheetBuilder
impl CreateStyleSheetBuilder
Sourcepub fn frame_id<VALUE: Into<FrameId>>(&mut self, value: VALUE) -> &mut Self
pub fn frame_id<VALUE: Into<FrameId>>(&mut self, value: VALUE) -> &mut Self
Identifier of the frame where “via-inspector” stylesheet should be created.
Sourcepub fn force<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn force<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
If true, creates a new stylesheet for every call. If false, returns a stylesheet previously created by a call with force=false for the frame’s document if it exists or creates a new stylesheet (default: false).
Sourcepub fn build(&self) -> Result<CreateStyleSheet, CreateStyleSheetBuilderError>
pub fn build(&self) -> Result<CreateStyleSheet, CreateStyleSheetBuilderError>
Trait Implementations§
Source§impl Clone for CreateStyleSheetBuilder
impl Clone for CreateStyleSheetBuilder
Source§fn clone(&self) -> CreateStyleSheetBuilder
fn clone(&self) -> CreateStyleSheetBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CreateStyleSheetBuilder
impl RefUnwindSafe for CreateStyleSheetBuilder
impl Send for CreateStyleSheetBuilder
impl Sync for CreateStyleSheetBuilder
impl Unpin for CreateStyleSheetBuilder
impl UnsafeUnpin for CreateStyleSheetBuilder
impl UnwindSafe for CreateStyleSheetBuilder
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