pub struct BoxBorderRef(/* private fields */);Expand description
A BoxBorder held by value: what a Dart field or parameter typed BoxBorder becomes;
ShapeBorderRef’s sharing and equality, for the narrower type.
Implementations§
Source§impl BoxBorderRef
impl BoxBorderRef
Sourcepub fn new(border: impl BoxBorder) -> BoxBorderRef
pub fn new(border: impl BoxBorder) -> BoxBorderRef
Erases a BoxBorder.
Sourcepub fn lerp(
a: Option<&BoxBorderRef>,
b: Option<&BoxBorderRef>,
t: f64,
) -> Option<BoxBorderRef>
pub fn lerp( a: Option<&BoxBorderRef>, b: Option<&BoxBorderRef>, t: f64, ) -> Option<BoxBorderRef>
Linearly interpolate between two borders.
If a border is null, it is treated as having four BorderSide::NONE
borders.
Trait Implementations§
Source§impl Clone for BoxBorderRef
impl Clone for BoxBorderRef
Source§fn clone(&self) -> BoxBorderRef
fn clone(&self) -> BoxBorderRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BoxBorderRef
impl Debug for BoxBorderRef
Source§impl Deref for BoxBorderRef
impl Deref for BoxBorderRef
Source§impl Display for BoxBorderRef
Dart’s BoxBorder.toString, which the inner border’s Debug already renders.
impl Display for BoxBorderRef
Dart’s BoxBorder.toString, which the inner border’s Debug already renders.
Source§impl From<BoxBorderRef> for ShapeBorderRef
impl From<BoxBorderRef> for ShapeBorderRef
Source§fn from(border: BoxBorderRef) -> ShapeBorderRef
fn from(border: BoxBorderRef) -> ShapeBorderRef
Converts to this type from the input type.
Source§impl<T> From<T> for BoxBorderRefwhere
T: BoxBorder,
impl<T> From<T> for BoxBorderRefwhere
T: BoxBorder,
Source§fn from(border: T) -> BoxBorderRef
fn from(border: T) -> BoxBorderRef
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for BoxBorderRef
impl !Send for BoxBorderRef
impl !Sync for BoxBorderRef
impl !UnwindSafe for BoxBorderRef
impl Forget for BoxBorderRef
impl Freeze for BoxBorderRef
impl Move for BoxBorderRef
impl Unpin for BoxBorderRef
impl UnsafeUnpin for BoxBorderRefwhere
*const RcInner<dyn BoxBorder> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn BoxBorder>>: UnsafeUnpin,
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