#[repr(C)]pub struct Divider {
pub orientation: DividerOrientation,
pub divider_style: CssPropertyWithConditionsVec,
}Expand description
A thin separator rule. Stateless; renders a single styled div.
Fields§
§orientation: DividerOrientation§divider_style: CssPropertyWithConditionsVecImplementations§
Source§impl Divider
impl Divider
Sourcepub fn create_with_orientation(orientation: DividerOrientation) -> Self
pub fn create_with_orientation(orientation: DividerOrientation) -> Self
Creates a new divider with the given orientation and default styling.
Sourcepub fn set_orientation(&mut self, orientation: DividerOrientation)
pub fn set_orientation(&mut self, orientation: DividerOrientation)
Sets the orientation, resetting the style to the matching default.
Sourcepub fn with_orientation(self, orientation: DividerOrientation) -> Self
pub fn with_orientation(self, orientation: DividerOrientation) -> Self
Builder-style setter for the orientation.
Sourcepub fn swap_with_default(&mut self) -> Self
pub fn swap_with_default(&mut self) -> Self
Replaces self with a default horizontal divider and returns the original.
Trait Implementations§
impl Eq for Divider
impl StructuralPartialEq for Divider
Auto Trait Implementations§
impl Freeze for Divider
impl RefUnwindSafe for Divider
impl Send for Divider
impl Sync for Divider
impl Unpin for Divider
impl UnsafeUnpin for Divider
impl UnwindSafe for Divider
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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