pub struct GetAnchorElementParams {
pub node_id: 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: 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§
Source§impl GetAnchorElementParams
impl GetAnchorElementParams
pub fn new(node_id: impl Into<NodeId>) -> GetAnchorElementParams
Source§impl GetAnchorElementParams
impl GetAnchorElementParams
pub fn builder() -> GetAnchorElementParamsBuilder
Source§impl GetAnchorElementParams
impl GetAnchorElementParams
pub const IDENTIFIER: &'static str = "DOM.getAnchorElement"
Trait Implementations§
Source§impl Clone for GetAnchorElementParams
impl Clone for GetAnchorElementParams
Source§fn clone(&self) -> GetAnchorElementParams
fn clone(&self) -> GetAnchorElementParams
Returns a copy 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 Command for GetAnchorElementParams
impl Command for GetAnchorElementParams
Source§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<GetAnchorElementParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GetAnchorElementParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Method for GetAnchorElementParams
impl Method for GetAnchorElementParams
Source§fn identifier(&self) -> Cow<'static, str>
fn identifier(&self) -> Cow<'static, str>
The whole string identifier for this method like:
DOM.removeNode
Source§fn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
The name of the domain this method belongs to:
DOM
Source§fn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
The standalone identifier of the method inside the domain:
removeNode
Source§impl MethodType for GetAnchorElementParams
impl MethodType for GetAnchorElementParams
Source§impl PartialEq for GetAnchorElementParams
impl PartialEq for GetAnchorElementParams
Source§impl Serialize for GetAnchorElementParams
impl Serialize for GetAnchorElementParams
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more