pub struct PointViewMut<'a, 'b, B: BorrowedMutBuffer<'a> + ?Sized, T: PointType>where
'a: 'b,{ /* private fields */ }
Expand description
Like PointView
, but provides mutable access to the strongly typed point data. For buffers with unknown
memory layout, this means that you have to use PointViewMut::set_at
, but if the underlying buffer
implements InterleavedBufferMut
, you can also access strongly-typed points by mutable borrow!
Implementations§
Source§impl<'a, 'b, B: BorrowedMutBuffer<'a> + ?Sized, T: PointType> PointViewMut<'a, 'b, B, T>
impl<'a, 'b, B: BorrowedMutBuffer<'a> + ?Sized, T: PointType> PointViewMut<'a, 'b, B, T>
Source§impl<'a, 'b, B: InterleavedBuffer<'a> + BorrowedMutBuffer<'a> + ?Sized, T: PointType> PointViewMut<'a, 'b, B, T>
impl<'a, 'b, B: InterleavedBuffer<'a> + BorrowedMutBuffer<'a> + ?Sized, T: PointType> PointViewMut<'a, 'b, B, T>
Source§impl<'a, 'b, B: InterleavedBufferMut<'a> + ?Sized, T: PointType> PointViewMut<'a, 'b, B, T>
impl<'a, 'b, B: InterleavedBufferMut<'a> + ?Sized, T: PointType> PointViewMut<'a, 'b, B, T>
Source§impl<'a, 'b, B: OwningBuffer<'a> + ?Sized, T: PointType> PointViewMut<'a, 'b, B, T>
impl<'a, 'b, B: OwningBuffer<'a> + ?Sized, T: PointType> PointViewMut<'a, 'b, B, T>
Sourcepub fn push_point(&mut self, point: T)
pub fn push_point(&mut self, point: T)
Push the given point
into the underlying buffer
Trait Implementations§
Source§impl<'a, 'b, B: Debug + BorrowedMutBuffer<'a> + ?Sized, T: Debug + PointType> Debug for PointViewMut<'a, 'b, B, T>where
'a: 'b,
impl<'a, 'b, B: Debug + BorrowedMutBuffer<'a> + ?Sized, T: Debug + PointType> Debug for PointViewMut<'a, 'b, B, T>where
'a: 'b,
Source§impl<'a, 'b, 'c, 'd, B1: BorrowedMutBuffer<'a> + ?Sized + 'a, B2: BorrowedMutBuffer<'c> + ?Sized + 'c, T: PointType + PartialEq> PartialEq<PointViewMut<'c, 'd, B2, T>> for PointViewMut<'a, 'b, B1, T>
impl<'a, 'b, 'c, 'd, B1: BorrowedMutBuffer<'a> + ?Sized + 'a, B2: BorrowedMutBuffer<'c> + ?Sized + 'c, T: PointType + PartialEq> PartialEq<PointViewMut<'c, 'd, B2, T>> for PointViewMut<'a, 'b, B1, T>
impl<'a, 'b, B: BorrowedMutBuffer<'a> + ?Sized + 'a, T: PointType + Eq> Eq for PointViewMut<'a, 'b, B, T>
Auto Trait Implementations§
impl<'a, 'b, B, T> Freeze for PointViewMut<'a, 'b, B, T>where
B: ?Sized,
impl<'a, 'b, B, T> RefUnwindSafe for PointViewMut<'a, 'b, B, T>
impl<'a, 'b, B, T> Send for PointViewMut<'a, 'b, B, T>
impl<'a, 'b, B, T> Sync for PointViewMut<'a, 'b, B, T>
impl<'a, 'b, B, T> Unpin for PointViewMut<'a, 'b, B, T>where
B: ?Sized,
impl<'a, 'b, B, T> !UnwindSafe for PointViewMut<'a, 'b, B, T>
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 moreSource§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.