pub struct Location { /* private fields */ }
Expand description
Ordered sequence of normalized variation coordinates.
To produce from user coordinates see crate::AxisCollection::location
.
This is an owned version of LocationRef
. See the documentation on that
type for more detail.
Implementations§
source§impl Location
impl Location
sourcepub fn new(len: usize) -> Self
pub fn new(len: usize) -> Self
Creates a new location with the given number of normalized coordinates.
Each element will be initialized to the default value (0.0).
sourcepub fn coords(&self) -> &[NormalizedCoord]
pub fn coords(&self) -> &[NormalizedCoord]
Returns the underlying slice of normalized coordinates.
sourcepub fn coords_mut(&mut self) -> &mut [NormalizedCoord]
pub fn coords_mut(&mut self) -> &mut [NormalizedCoord]
Returns a mutable reference to the underlying slice of normalized coordinates.
Trait Implementations§
source§impl<'a> From<&'a Location> for LocationRef<'a>
impl<'a> From<&'a Location> for LocationRef<'a>
source§impl<'a> IntoIterator for &'a Location
impl<'a> IntoIterator for &'a Location
source§impl<'a> IntoIterator for &'a mut Location
impl<'a> IntoIterator for &'a mut Location
impl Eq for Location
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)