Struct forceatlas2::PointList [−][src]
Fields
dimensions: usize
Expand description
Number of coordinates in a vector
points: Vec<T>
Expand description
List of the coordinates of the vectors
Implementations
impl<'a, T: Coord> PointList<T>
[src]
impl<'a, T: Coord> PointList<T>
[src]pub fn get(&'a self, n: usize) -> &'a Position<T>
[src]
pub unsafe fn get_unchecked(&'a self, n: usize) -> &'a Position<T>
[src]
pub unsafe fn get_unchecked(&'a self, n: usize) -> &'a Position<T>
[src]Safety
n
must be in bounds.
pub fn get_clone(&self, n: usize) -> Vec<T>
[src]
pub fn get_clone_slice(&self, n: usize, v: &mut [T])
[src]
pub fn get_mut(&mut self, n: usize) -> &mut Position<T>
[src]
pub fn get_2_mut(
&mut self,
n1: usize,
n2: usize
) -> (&mut Position<T>, &mut Position<T>)
[src]
pub fn get_2_mut(
&mut self,
n1: usize,
n2: usize
) -> (&mut Position<T>, &mut Position<T>)
[src]n1 < n2
pub fn set(&mut self, n: usize, val: &Position<T>)
[src]
pub fn iter(&self) -> PointIter<'_, T>ⓘ
[src]
pub fn iter_from(&self, offset: usize) -> PointIter<'_, T>ⓘ
[src]
pub fn iter_mut(&mut self) -> PointIterMut<'_, T>ⓘNotable traits for PointIterMut<'a, T>
impl<'a, T> Iterator for PointIterMut<'a, T> type Item = &'a mut [T];
[src]
Notable traits for PointIterMut<'a, T>
impl<'a, T> Iterator for PointIterMut<'a, T> type Item = &'a mut [T];
pub fn iter_mut_from(&mut self, offset: usize) -> PointIterMut<'_, T>ⓘNotable traits for PointIterMut<'a, T>
impl<'a, T> Iterator for PointIterMut<'a, T> type Item = &'a mut [T];
[src]
Notable traits for PointIterMut<'a, T>
impl<'a, T> Iterator for PointIterMut<'a, T> type Item = &'a mut [T];
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for PointList<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for PointList<T> where
T: Send,
T: Send,
impl<T> Sync for PointList<T> where
T: Sync,
T: Sync,
impl<T> Unpin for PointList<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for PointList<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,