pub struct ComputedStyleBuilder { /* private fields */ }Expand description
Builder for ComputedStyle.
Implementations§
Source§impl ComputedStyleBuilder
impl ComputedStyleBuilder
Sourcepub fn properties<VALUE: Into<Vec<NameValue>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn properties<VALUE: Into<Vec<NameValue>>>( &mut self, value: VALUE, ) -> &mut Self
Name/value pairs of computed style properties.
Sourcepub fn build(&self) -> Result<ComputedStyle, ComputedStyleBuilderError>
pub fn build(&self) -> Result<ComputedStyle, ComputedStyleBuilderError>
Trait Implementations§
Source§impl Clone for ComputedStyleBuilder
impl Clone for ComputedStyleBuilder
Source§fn clone(&self) -> ComputedStyleBuilder
fn clone(&self) -> ComputedStyleBuilder
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 ComputedStyleBuilder
impl RefUnwindSafe for ComputedStyleBuilder
impl Send for ComputedStyleBuilder
impl Sync for ComputedStyleBuilder
impl Unpin for ComputedStyleBuilder
impl UnsafeUnpin for ComputedStyleBuilder
impl UnwindSafe for ComputedStyleBuilder
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