Skip to content

Commit

Permalink
Deprecate AxisDescription's accessor methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jturner314 committed Feb 9, 2021
1 parent 76399d5 commit 1f0a72a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dimension/axes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,19 @@ copy_and_clone!(AxisDescription);
#[allow(clippy::len_without_is_empty)]
impl AxisDescription {
/// Return axis
#[deprecated(note = "Use .axis field instead", since = "0.15.0")]
#[inline(always)]
pub fn axis(self) -> Axis {
self.axis
}
/// Return length
#[deprecated(note = "Use .len field instead", since = "0.15.0")]
#[inline(always)]
pub fn len(self) -> Ix {
self.len
}
/// Return stride
#[deprecated(note = "Use .stride field instead", since = "0.15.0")]
#[inline(always)]
pub fn stride(self) -> Ixs {
self.stride
Expand Down

0 comments on commit 1f0a72a

Please sign in to comment.