pub struct CssFunctionRuleBuilder { /* private fields */ }Expand description
Builder for CssFunctionRule.
Implementations§
Source§impl CssFunctionRuleBuilder
impl CssFunctionRuleBuilder
Sourcepub fn style_sheet_id<VALUE: Into<StyleSheetId>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn style_sheet_id<VALUE: Into<StyleSheetId>>( &mut self, value: VALUE, ) -> &mut Self
The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
Sourcepub fn origin<VALUE: Into<StyleSheetOrigin>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn origin<VALUE: Into<StyleSheetOrigin>>( &mut self, value: VALUE, ) -> &mut Self
Parent stylesheet’s origin.
Sourcepub fn parameters<VALUE: Into<Vec<CssFunctionParameter>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn parameters<VALUE: Into<Vec<CssFunctionParameter>>>( &mut self, value: VALUE, ) -> &mut Self
List of parameters.
Sourcepub fn children<VALUE: Into<Vec<CssFunctionNode>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn children<VALUE: Into<Vec<CssFunctionNode>>>( &mut self, value: VALUE, ) -> &mut Self
Function body.
Sourcepub fn build(&self) -> Result<CssFunctionRule, CssFunctionRuleBuilderError>
pub fn build(&self) -> Result<CssFunctionRule, CssFunctionRuleBuilderError>
Trait Implementations§
Source§impl Clone for CssFunctionRuleBuilder
impl Clone for CssFunctionRuleBuilder
Source§fn clone(&self) -> CssFunctionRuleBuilder
fn clone(&self) -> CssFunctionRuleBuilder
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 CssFunctionRuleBuilder
impl RefUnwindSafe for CssFunctionRuleBuilder
impl Send for CssFunctionRuleBuilder
impl Sync for CssFunctionRuleBuilder
impl Unpin for CssFunctionRuleBuilder
impl UnsafeUnpin for CssFunctionRuleBuilder
impl UnwindSafe for CssFunctionRuleBuilder
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