pub struct ArrowOptions {
pub element: AnyNodeRef,
pub padding: Option<Padding>,
}Expand description
Options for Arrow.
Fields§
§element: AnyNodeRefThe arrow element to be positioned.
padding: Option<Padding>The padding between the arrow element and the floating element edges. Useful when the floating element has rounded corners.
Defaults to 0 on all sides.
Implementations§
Source§impl ArrowOptions
impl ArrowOptions
pub fn new(element: AnyNodeRef) -> Self
Sourcepub fn element(self, value: AnyNodeRef) -> Self
pub fn element(self, value: AnyNodeRef) -> Self
Set element option.
Trait Implementations§
Source§impl Clone for ArrowOptions
impl Clone for ArrowOptions
Source§fn clone(&self) -> ArrowOptions
fn clone(&self) -> ArrowOptions
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 PartialEq for ArrowOptions
impl PartialEq for ArrowOptions
Auto Trait Implementations§
impl Freeze for ArrowOptions
impl RefUnwindSafe for ArrowOptions
impl Send for ArrowOptions
impl Sync for ArrowOptions
impl Unpin for ArrowOptions
impl UnwindSafe for ArrowOptions
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> 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 moreSource§impl<T> SerializableKey for T
impl<T> SerializableKey for T
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.