[−][src]Struct webrender::api::BorderRadius
Fields
top_left: TypedSize2D<f32, LayoutPixel>
top_right: TypedSize2D<f32, LayoutPixel>
bottom_left: TypedSize2D<f32, LayoutPixel>
bottom_right: TypedSize2D<f32, LayoutPixel>
Methods
impl BorderRadius[src]
impl BorderRadiuspub fn zero() -> BorderRadius[src]
pub fn zero() -> BorderRadiuspub fn uniform(radius: f32) -> BorderRadius[src]
pub fn uniform(radius: f32) -> BorderRadiuspub fn uniform_size(radius: TypedSize2D<f32, LayoutPixel>) -> BorderRadius[src]
pub fn uniform_size(radius: TypedSize2D<f32, LayoutPixel>) -> BorderRadiuspub fn is_uniform(&self) -> Option<f32>[src]
pub fn is_uniform(&self) -> Option<f32>pub fn is_uniform_size(&self) -> Option<TypedSize2D<f32, LayoutPixel>>[src]
pub fn is_uniform_size(&self) -> Option<TypedSize2D<f32, LayoutPixel>>pub fn is_zero(&self) -> bool[src]
pub fn is_zero(&self) -> boolTrait Implementations
impl Copy for BorderRadius[src]
impl Copy for BorderRadiusimpl Clone for BorderRadius[src]
impl Clone for BorderRadiusfn clone(&self) -> BorderRadius[src]
fn clone(&self) -> BorderRadiusReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Serialize for BorderRadius[src]
impl Serialize for BorderRadiusfn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer, [src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer, Serialize this value into the given Serde serializer. Read more
impl Debug for BorderRadius[src]
impl Debug for BorderRadiusfn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl<'de> Deserialize<'de> for BorderRadius[src]
impl<'de> Deserialize<'de> for BorderRadiusfn deserialize<__D>(
__deserializer: __D
) -> Result<BorderRadius, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<BorderRadius, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
fn deserialize_in_place<__D>(
__deserializer: __D,
__place: &mut BorderRadius
) -> Result<(), <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>, [src]
fn deserialize_in_place<__D>(
__deserializer: __D,
__place: &mut BorderRadius
) -> Result<(), <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>, impl PartialEq<BorderRadius> for BorderRadius[src]
impl PartialEq<BorderRadius> for BorderRadiusfn eq(&self, other: &BorderRadius) -> bool[src]
fn eq(&self, other: &BorderRadius) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &BorderRadius) -> bool[src]
fn ne(&self, other: &BorderRadius) -> boolThis method tests for !=.
Auto Trait Implementations
impl Send for BorderRadius
impl Send for BorderRadiusimpl Sync for BorderRadius
impl Sync for BorderRadiusBlanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, type Owned = T
fn to_owned(&self) -> T[src]
fn to_owned(&self) -> TCreates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)[src]
fn clone_into(&self, target: &mut T)🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> From for T[src]
impl<T> From for Timpl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
Gets the TypeId of self. Read more
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,