Struct libreda_db::reference_access::ShapeRef
source · pub struct ShapeRef<'a, L: LayoutBase + ?Sized> { /* private fields */ }
Expand description
Reference to a shape.
Implementations§
source§impl<'a, L: LayoutBase> ShapeRef<'a, L>
impl<'a, L: LayoutBase> ShapeRef<'a, L>
sourcepub fn geometry_cloned(&self) -> Geometry<L::Coord>
pub fn geometry_cloned(&self) -> Geometry<L::Coord>
Get the cloned geometry struct representing this shape.
Trait Implementations§
source§impl<'a, L: LayoutBase> PartialEq for ShapeRef<'a, L>
impl<'a, L: LayoutBase> PartialEq for ShapeRef<'a, L>
impl<'a, L: LayoutBase> Eq for ShapeRef<'a, L>
Auto Trait Implementations§
impl<'a, L> Freeze for ShapeRef<'a, L>
impl<'a, L> RefUnwindSafe for ShapeRef<'a, L>
impl<'a, L> Send for ShapeRef<'a, L>
impl<'a, L> Sync for ShapeRef<'a, L>
impl<'a, L> Unpin for ShapeRef<'a, L>
impl<'a, L> UnwindSafe for ShapeRef<'a, L>
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more