pub struct GetAnchorElementParams {
pub node_id: Box<NodeId>,
pub anchor_specifier: Option<String>,
}Expand description
Returns the target anchor element of the given anchor query according to https://www.w3.org/TR/css-anchor-position-1/#target. getAnchorElement
Fields§
§node_id: Box<NodeId>Id of the positioned element from which to find the anchor.
anchor_specifier: Option<String>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.
Implementations§
Trait Implementations§
Source§impl Clone for GetAnchorElementParams
impl Clone for GetAnchorElementParams
Source§fn clone(&self) -> GetAnchorElementParams
fn clone(&self) -> GetAnchorElementParams
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 moreSource§impl Debug for GetAnchorElementParams
impl Debug for GetAnchorElementParams
Source§impl<'de> Deserialize<'de> for GetAnchorElementParams
impl<'de> Deserialize<'de> for GetAnchorElementParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GetAnchorElementParams
impl PartialEq for GetAnchorElementParams
Source§impl Serialize for GetAnchorElementParams
impl Serialize for GetAnchorElementParams
impl StructuralPartialEq for GetAnchorElementParams
Auto Trait Implementations§
impl Freeze for GetAnchorElementParams
impl RefUnwindSafe for GetAnchorElementParams
impl Send for GetAnchorElementParams
impl Sync for GetAnchorElementParams
impl Unpin for GetAnchorElementParams
impl UnsafeUnpin for GetAnchorElementParams
impl UnwindSafe for GetAnchorElementParams
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