pub struct GetAnchorElementParams {
pub nodeId: NodeId,
pub anchorSpecifier: 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.
Fields§
§nodeId: NodeIdId of the positioned element from which to find the anchor.
anchorSpecifier: 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.
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 Default for GetAnchorElementParams
impl Default for GetAnchorElementParams
Source§fn default() -> GetAnchorElementParams
fn default() -> GetAnchorElementParams
Returns the “default value” for a type. Read more
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
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