pub struct Rect { /* private fields */ }Expand description
An implementation of the Rect
Roblox datatype, backed by glam::Vec2.
This implements all documented properties, methods & constructors of the Rect class as of March 2023.
Trait Implementations§
source§impl PartialEq for Rect
impl PartialEq for Rect
source§impl UserData for Rect
impl UserData for Rect
source§fn add_fields<'lua, F: LuaUserDataFields<'lua, Self>>(fields: &mut F)
fn add_fields<'lua, F: LuaUserDataFields<'lua, Self>>(fields: &mut F)
Adds custom fields specific to this userdata.
source§fn add_methods<'lua, M: LuaUserDataMethods<'lua, Self>>(methods: &mut M)
fn add_methods<'lua, M: LuaUserDataMethods<'lua, Self>>(methods: &mut M)
Adds custom methods and operators specific to this userdata.
impl Copy for Rect
impl StructuralPartialEq for Rect
Auto Trait Implementations§
impl RefUnwindSafe for Rect
impl Send for Rect
impl Sync for Rect
impl Unpin for Rect
impl UnwindSafe for Rect
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<'lua, T> IntoLuaMulti<'lua> for Twhere
T: IntoLua<'lua>,
impl<'lua, T> IntoLuaMulti<'lua> for Twhere T: IntoLua<'lua>,
source§fn into_lua_multi(self, lua: &'lua Lua) -> Result<MultiValue<'lua>, Error>
fn into_lua_multi(self, lua: &'lua Lua) -> Result<MultiValue<'lua>, Error>
Performs the conversion.