pub struct Rectangle { /* private fields */ }
Implementations§
Source§impl Rectangle
impl Rectangle
pub fn new(height: usize, width: usize, x: usize, y: usize) -> Rectangle
pub fn height(self) -> usize
pub fn set_height(self, value: usize)
pub fn width(self) -> usize
pub fn set_width(self, value: usize)
pub fn x(self) -> usize
pub fn set_x(self, value: usize)
pub fn y(self) -> usize
pub fn set_y(self, value: usize)
Trait Implementations§
Source§impl FromWasmAbi for Rectangle
impl FromWasmAbi for Rectangle
Source§impl IntoWasmAbi for Rectangle
impl IntoWasmAbi for Rectangle
Source§impl LongRefFromWasmAbi for Rectangle
impl LongRefFromWasmAbi for Rectangle
Source§impl OptionFromWasmAbi for Rectangle
impl OptionFromWasmAbi for Rectangle
Source§impl OptionIntoWasmAbi for Rectangle
impl OptionIntoWasmAbi for Rectangle
Source§impl Ord for Rectangle
impl Ord for Rectangle
Source§impl PartialOrd for Rectangle
impl PartialOrd for Rectangle
Source§impl RefFromWasmAbi for Rectangle
impl RefFromWasmAbi for Rectangle
Source§impl RefMutFromWasmAbi for Rectangle
impl RefMutFromWasmAbi for Rectangle
Source§impl TryFromJsValue for Rectangle
impl TryFromJsValue for Rectangle
Source§impl VectorFromWasmAbi for Rectangle
impl VectorFromWasmAbi for Rectangle
Source§impl VectorIntoWasmAbi for Rectangle
impl VectorIntoWasmAbi for Rectangle
impl Copy for Rectangle
impl Eq for Rectangle
impl StructuralPartialEq for Rectangle
impl SupportsConstructor for Rectangle
impl SupportsInstanceProperty for Rectangle
impl SupportsStaticProperty for Rectangle
Auto Trait Implementations§
impl Freeze for Rectangle
impl RefUnwindSafe for Rectangle
impl Send for Rectangle
impl Sync for Rectangle
impl Unpin for Rectangle
impl UnwindSafe for Rectangle
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> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.