pub struct GetAnchorElement {
pub method: GetAnchorElementMethod,
pub params: GetAnchorElementParams,
}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§
§method: GetAnchorElementMethod§params: GetAnchorElementParamsImplementations§
Source§impl GetAnchorElement
impl GetAnchorElement
pub fn builder() -> GetAnchorElementBuilder
Source§impl GetAnchorElement
impl GetAnchorElement
pub const IDENTIFIER: &'static str = "DOM.getAnchorElement"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for GetAnchorElement
impl Clone for GetAnchorElement
Source§fn clone(&self) -> GetAnchorElement
fn clone(&self) -> GetAnchorElement
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 CommandResult for GetAnchorElement
impl CommandResult for GetAnchorElement
type Result = GetAnchorElementResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl Debug for GetAnchorElement
impl Debug for GetAnchorElement
Source§impl<'de> Deserialize<'de> for GetAnchorElement
impl<'de> Deserialize<'de> for GetAnchorElement
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 From<GetAnchorElement> for BrowserProtocolCommands
impl From<GetAnchorElement> for BrowserProtocolCommands
Source§fn from(v: GetAnchorElement) -> Self
fn from(v: GetAnchorElement) -> Self
Converts to this type from the input type.
Source§impl From<GetAnchorElement> for Command
impl From<GetAnchorElement> for Command
Source§fn from(v: GetAnchorElement) -> Self
fn from(v: GetAnchorElement) -> Self
Converts to this type from the input type.
Source§impl From<GetAnchorElement> for DomCommands
impl From<GetAnchorElement> for DomCommands
Source§fn from(v: GetAnchorElement) -> Self
fn from(v: GetAnchorElement) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GetAnchorElement
impl PartialEq for GetAnchorElement
Source§impl Serialize for GetAnchorElement
impl Serialize for GetAnchorElement
Source§impl TryFrom<BrowserProtocolCommands> for GetAnchorElement
impl TryFrom<BrowserProtocolCommands> for GetAnchorElement
Source§type Error = BrowserProtocolCommands
type Error = BrowserProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolCommands,
) -> Result<Self, <GetAnchorElement as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <GetAnchorElement as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for GetAnchorElement
impl TryFrom<Command> for GetAnchorElement
Source§impl TryFrom<DomCommands> for GetAnchorElement
impl TryFrom<DomCommands> for GetAnchorElement
Source§type Error = DomCommands
type Error = DomCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: DomCommands,
) -> Result<Self, <GetAnchorElement as TryFrom<DomCommands>>::Error>
fn try_from( e: DomCommands, ) -> Result<Self, <GetAnchorElement as TryFrom<DomCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for GetAnchorElement
Auto Trait Implementations§
impl Freeze for GetAnchorElement
impl RefUnwindSafe for GetAnchorElement
impl Send for GetAnchorElement
impl Sync for GetAnchorElement
impl Unpin for GetAnchorElement
impl UnsafeUnpin for GetAnchorElement
impl UnwindSafe for GetAnchorElement
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