pub struct GetAnchorElementBuilder { /* private fields */ }Expand description
Builder for GetAnchorElement.
Implementations§
Source§impl GetAnchorElementBuilder
impl GetAnchorElementBuilder
Sourcepub fn node_id<VALUE: Into<NodeId>>(&mut self, value: VALUE) -> &mut Self
pub fn node_id<VALUE: Into<NodeId>>(&mut self, value: VALUE) -> &mut Self
Id of the positioned element from which to find the anchor.
Sourcepub fn anchor_specifier<VALUE: Into<String>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn anchor_specifier<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
An optional anchor specifier, as defined in https://www.w3.org/TR/css-anchor-position-1/#anchor-specifier. If not provided, it will return the implicit anchor element for the given positioned element.
Sourcepub fn build(&self) -> Result<GetAnchorElement, GetAnchorElementBuilderError>
pub fn build(&self) -> Result<GetAnchorElement, GetAnchorElementBuilderError>
Trait Implementations§
Source§impl Clone for GetAnchorElementBuilder
impl Clone for GetAnchorElementBuilder
Source§fn clone(&self) -> GetAnchorElementBuilder
fn clone(&self) -> GetAnchorElementBuilder
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 GetAnchorElementBuilder
impl RefUnwindSafe for GetAnchorElementBuilder
impl Send for GetAnchorElementBuilder
impl Sync for GetAnchorElementBuilder
impl Unpin for GetAnchorElementBuilder
impl UnsafeUnpin for GetAnchorElementBuilder
impl UnwindSafe for GetAnchorElementBuilder
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