pub struct AnchorBox {
pub near: Option<Box<Selector>>,
pub below: Option<Box<Selector>>,
pub above: Option<Box<Selector>>,
pub left_of: Option<Box<Selector>>,
pub right_of: Option<Box<Selector>>,
pub inside: Option<Box<Selector>>,
pub ancestor: Option<Box<Selector>>,
}Expand description
Anchor base form’s spatial keys. Identical shape to the spatial half
of Modifiers but without nth/first/last (Anchor stacks
IndexModifiers separately).
Fields§
§near: Option<Box<Selector>>Anchor sub-selector — see Modifiers::near.
below: Option<Box<Selector>>Anchor sub-selector — see Modifiers::below.
above: Option<Box<Selector>>Anchor sub-selector — see Modifiers::above.
left_of: Option<Box<Selector>>Anchor sub-selector — see Modifiers::left_of.
right_of: Option<Box<Selector>>Anchor sub-selector — see Modifiers::right_of.
inside: Option<Box<Selector>>Anchor sub-selector — see Modifiers::inside.
ancestor: Option<Box<Selector>>Anchor sub-selector — see Modifiers::ancestor. The top-level
Modifiers has carried this since the resolver learned structural
containment; the anchor form did not, so all three SDKs (which do
expose it on their AnchorBox) had it silently dropped by serde and
got a wider candidate set than they asked for.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AnchorBox
impl<'de> Deserialize<'de> for AnchorBox
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AnchorBox, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AnchorBox, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AnchorBox
impl Serialize for AnchorBox
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 AnchorBox
Auto Trait Implementations§
impl Freeze for AnchorBox
impl RefUnwindSafe for AnchorBox
impl Send for AnchorBox
impl Sync for AnchorBox
impl Unpin for AnchorBox
impl UnsafeUnpin for AnchorBox
impl UnwindSafe for AnchorBox
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