pub enum RectBackground {
LinearGradient(LinearGradient),
RadialGradient(RadialGradient),
Image(ImageInfo),
Color(ColorU),
}
Variants§
Implementations§
Source§impl RectBackground
impl RectBackground
pub fn get_content_size(&self) -> Option<(f32, f32)>
Trait Implementations§
Source§impl Clone for RectBackground
impl Clone for RectBackground
Source§fn clone(&self) -> RectBackground
fn clone(&self) -> RectBackground
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 moreSource§impl Debug for RectBackground
impl Debug for RectBackground
Source§impl PartialEq for RectBackground
impl PartialEq for RectBackground
Source§impl PartialOrd for RectBackground
impl PartialOrd for RectBackground
impl StructuralPartialEq for RectBackground
Auto Trait Implementations§
impl Freeze for RectBackground
impl RefUnwindSafe for RectBackground
impl Send for RectBackground
impl Sync for RectBackground
impl Unpin for RectBackground
impl UnwindSafe for RectBackground
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)