pub enum GradientSegments {
Top,
Bottom,
Left,
Right,
TopHorizontalRightLn,
TopHorizontalLeftLn,
BottomHorizontalRightLn,
BottomHorizontalLeftLn,
TopVerticalRightLn,
TopVerticalLeftLn,
BottomVerticalRightLn,
BottomVerticalLeftLn,
}Expand description
Represents different segments of a border where gradients can be applied.
This enum is used to control gradient effects for specific border sections, allowing for finer customization of visual styles.
Variants§
Top
The top border segment.
Bottom
The bottom border segment.
Left
The left border segment.
Right
The right border segment.
TopHorizontalRightLn
The right portion of the top horizontal border.
TopHorizontalLeftLn
The left portion of the top horizontal border.
BottomHorizontalRightLn
The right portion of the bottom horizontal border.
BottomHorizontalLeftLn
The left portion of the bottom horizontal border.
TopVerticalRightLn
The right portion of the top vertical border.
TopVerticalLeftLn
The left portion of the top vertical border.
BottomVerticalRightLn
The right portion of the bottom vertical border.
BottomVerticalLeftLn
The left portion of the bottom vertical border.
Trait Implementations§
Source§impl Clone for GradientSegments
impl Clone for GradientSegments
Source§fn clone(&self) -> GradientSegments
fn clone(&self) -> GradientSegments
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 moreAuto Trait Implementations§
impl Freeze for GradientSegments
impl RefUnwindSafe for GradientSegments
impl Send for GradientSegments
impl Sync for GradientSegments
impl Unpin for GradientSegments
impl UnwindSafe for GradientSegments
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 more