pub struct OutlinedBorderRef(/* private fields */);Expand description
An OutlinedBorder held by value: what a Dart field or parameter typed OutlinedBorder
becomes; ShapeBorderRef’s sharing and equality, for the narrower type.
Implementations§
Source§impl OutlinedBorderRef
impl OutlinedBorderRef
Sourcepub fn new(border: impl OutlinedBorder) -> OutlinedBorderRef
pub fn new(border: impl OutlinedBorder) -> OutlinedBorderRef
Erases an OutlinedBorder.
Sourcepub fn lerp(
a: Option<&OutlinedBorderRef>,
b: Option<&OutlinedBorderRef>,
t: f64,
) -> Option<OutlinedBorderRef>
pub fn lerp( a: Option<&OutlinedBorderRef>, b: Option<&OutlinedBorderRef>, t: f64, ) -> Option<OutlinedBorderRef>
Linearly interpolates between two OutlinedBorders.
Trait Implementations§
Source§impl Clone for OutlinedBorderRef
impl Clone for OutlinedBorderRef
Source§fn clone(&self) -> OutlinedBorderRef
fn clone(&self) -> OutlinedBorderRef
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 OutlinedBorderRef
impl Debug for OutlinedBorderRef
Source§impl Deref for OutlinedBorderRef
impl Deref for OutlinedBorderRef
Source§type Target = dyn OutlinedBorder
type Target = dyn OutlinedBorder
The resulting type after dereferencing.
Source§fn deref(&self) -> &(dyn OutlinedBorder + 'static)
fn deref(&self) -> &(dyn OutlinedBorder + 'static)
Dereferences the value.
Source§impl Display for OutlinedBorderRef
impl Display for OutlinedBorderRef
Source§impl From<OutlinedBorderRef> for ShapeBorderRef
impl From<OutlinedBorderRef> for ShapeBorderRef
Source§fn from(border: OutlinedBorderRef) -> ShapeBorderRef
fn from(border: OutlinedBorderRef) -> ShapeBorderRef
Converts to this type from the input type.
Source§impl<T> From<T> for OutlinedBorderRefwhere
T: OutlinedBorder,
impl<T> From<T> for OutlinedBorderRefwhere
T: OutlinedBorder,
Source§fn from(border: T) -> OutlinedBorderRef
fn from(border: T) -> OutlinedBorderRef
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for OutlinedBorderRef
impl !Send for OutlinedBorderRef
impl !Sync for OutlinedBorderRef
impl !UnwindSafe for OutlinedBorderRef
impl Forget for OutlinedBorderRef
impl Freeze for OutlinedBorderRefwhere
*const RcInner<dyn OutlinedBorder> is !null: Freeze,
PhantomData<RcInner<dyn OutlinedBorder>>: Freeze,
impl Move for OutlinedBorderRef
impl Unpin for OutlinedBorderRef
impl UnsafeUnpin for OutlinedBorderRefwhere
*const RcInner<dyn OutlinedBorder> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn OutlinedBorder>>: 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