Struct gluon_base::pos::Positioned
source · pub struct Positioned<T, Pos> {
pub pos: Pos,
pub value: T,
}
Fields§
§pos: Pos
§value: T
Trait Implementations§
source§impl<T: Clone, Pos: Clone> Clone for Positioned<T, Pos>
impl<T: Clone, Pos: Clone> Clone for Positioned<T, Pos>
source§fn clone(&self) -> Positioned<T, Pos>
fn clone(&self) -> Positioned<T, Pos>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Default, Pos: Default> Default for Positioned<T, Pos>
impl<T: Default, Pos: Default> Default for Positioned<T, Pos>
source§fn default() -> Positioned<T, Pos>
fn default() -> Positioned<T, Pos>
Returns the “default value” for a type. Read more
source§impl<T: PartialEq, Pos: PartialEq> PartialEq for Positioned<T, Pos>
impl<T: PartialEq, Pos: PartialEq> PartialEq for Positioned<T, Pos>
source§fn eq(&self, other: &Positioned<T, Pos>) -> bool
fn eq(&self, other: &Positioned<T, Pos>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Copy, Pos: Copy> Copy for Positioned<T, Pos>
impl<T: Eq, Pos: Eq> Eq for Positioned<T, Pos>
impl<T, Pos> StructuralEq for Positioned<T, Pos>
impl<T, Pos> StructuralPartialEq for Positioned<T, Pos>
Auto Trait Implementations§
impl<T, Pos> RefUnwindSafe for Positioned<T, Pos>where
Pos: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, Pos> Send for Positioned<T, Pos>
impl<T, Pos> Sync for Positioned<T, Pos>
impl<T, Pos> Unpin for Positioned<T, Pos>
impl<T, Pos> UnwindSafe for Positioned<T, Pos>where
Pos: UnwindSafe,
T: UnwindSafe,
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