pub struct GetComputedStyleForNodeReturnObjectBuilder { /* private fields */ }Expand description
Builder for GetComputedStyleForNodeReturnObject.
Implementations§
Source§impl GetComputedStyleForNodeReturnObjectBuilder
impl GetComputedStyleForNodeReturnObjectBuilder
Sourcepub fn computed_style(
&mut self,
value: Vec<CssComputedStyleProperty>,
) -> &mut Self
pub fn computed_style( &mut self, value: Vec<CssComputedStyleProperty>, ) -> &mut Self
Computed style for the specified DOM node.
Sourcepub fn extra_fields(&mut self, value: ComputedStyleExtraFields) -> &mut Self
pub fn extra_fields(&mut self, value: ComputedStyleExtraFields) -> &mut Self
A list of non-standard “extra fields” which blink stores alongside each computed style.
Sourcepub fn build(
&self,
) -> Result<GetComputedStyleForNodeReturnObject, GetComputedStyleForNodeReturnObjectBuilderError>
pub fn build( &self, ) -> Result<GetComputedStyleForNodeReturnObject, GetComputedStyleForNodeReturnObjectBuilderError>
Builds a new GetComputedStyleForNodeReturnObject.
§Errors
If a required field has not been initialized.
Trait Implementations§
Source§impl Clone for GetComputedStyleForNodeReturnObjectBuilder
impl Clone for GetComputedStyleForNodeReturnObjectBuilder
Source§fn clone(&self) -> GetComputedStyleForNodeReturnObjectBuilder
fn clone(&self) -> GetComputedStyleForNodeReturnObjectBuilder
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 GetComputedStyleForNodeReturnObjectBuilder
impl RefUnwindSafe for GetComputedStyleForNodeReturnObjectBuilder
impl Send for GetComputedStyleForNodeReturnObjectBuilder
impl Sync for GetComputedStyleForNodeReturnObjectBuilder
impl Unpin for GetComputedStyleForNodeReturnObjectBuilder
impl UnsafeUnpin for GetComputedStyleForNodeReturnObjectBuilder
impl UnwindSafe for GetComputedStyleForNodeReturnObjectBuilder
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