Struct devela::num::geom::Extent

source ·
pub struct Extent<T, const D: usize> { /* private fields */ }
Available on crate feature num_geom only.
Expand description

An orthogonal extension in D-space without a coordinate position.

It has the implied shape of an orthotope (a generalized rectangle).

Implementations§

source§

impl<T, const D: usize> Extent<T, D>

source

pub const fn new(dimensions: [T; D]) -> Self

Constructs a new Extent from the given dimensions.

source§

impl<T> Extent<T, 2>

source

pub const fn x(self) -> T
where T: Copy,

Returns a copy of the first dimension x.

source

pub const fn y(self) -> T
where T: Copy,

Returns a copy of the second dimension y.

source

pub const fn x_ref(&self) -> &T

Returns a shared reference to the first dimension x.

source

pub const fn y_ref(&self) -> &T

Returns a shared reference to the second dimension y.

source

pub fn x_mut(&mut self) -> &mut T

Returns an exclusive reference to the first dimension x.

source

pub fn y_mut(&mut self) -> &mut T

Returns an exclusive reference to the second dimension y.

source§

impl<T> Extent<T, 3>

source

pub const fn x(self) -> T
where T: Copy,

Returns a copy of the first dimension x.

source

pub const fn y(self) -> T
where T: Copy,

Returns a copy of the second dimension y.

source

pub const fn z(self) -> T
where T: Copy,

Returns a copy of the third dimension z.

source

pub const fn x_ref(&self) -> &T

Returns a shared reference to the first dimension x.

source

pub const fn y_ref(&self) -> &T

Returns a shared reference to the second dimension y.

source

pub const fn z_ref(&self) -> &T

Returns a shared reference to the third dimension z.

source

pub fn x_mut(&mut self) -> &mut T

Returns an exclusive reference to the first dimension x.

source

pub fn y_mut(&mut self) -> &mut T

Returns an exclusive reference to the second dimension y.

source

pub fn z_mut(&mut self) -> &mut T

Returns an exclusive reference to the third dimension z.

source§

impl<const D: usize> Extent<i8, D>

source

pub const fn c_measure(self) -> i8

Returns the internal measure, the product of the extents.

It’s equivalent to length, area, and volume in 1, 2 and 3 dimensions.

source

pub const fn c_boundary(self) -> i8

Returns the external boundary, the sum of the extents.

It’s equivalent to 2, perimeter and surface area in 1, 2 and 3 dimensions.

source§

impl Extent<i8, 1>

source

pub const fn c_length(self) -> i8

The length of the 1d extent.

source§

impl Extent<i8, 2>

source

pub const fn c_area(self) -> i8

The area of the 2d extent.

source

pub const fn c_perimeter(self) -> i8

The perimeter of the 2d extent.

source§

impl Extent<i8, 3>

source

pub const fn c_volume(self) -> i8

The volume of the 3d extent.

source

pub const fn c_surface_area(self) -> i8

The surface area of the 3d extent.

source§

impl<const D: usize> Extent<i16, D>

source

pub const fn c_measure(self) -> i16

Returns the internal measure, the product of the extents.

It’s equivalent to length, area, and volume in 1, 2 and 3 dimensions.

source

pub const fn c_boundary(self) -> i16

Returns the external boundary, the sum of the extents.

It’s equivalent to 2, perimeter and surface area in 1, 2 and 3 dimensions.

source§

impl Extent<i16, 1>

source

pub const fn c_length(self) -> i16

The length of the 1d extent.

source§

impl Extent<i16, 2>

source

pub const fn c_area(self) -> i16

The area of the 2d extent.

source

pub const fn c_perimeter(self) -> i16

The perimeter of the 2d extent.

source§

impl Extent<i16, 3>

source

pub const fn c_volume(self) -> i16

The volume of the 3d extent.

source

pub const fn c_surface_area(self) -> i16

The surface area of the 3d extent.

source§

impl<const D: usize> Extent<i32, D>

source

pub const fn c_measure(self) -> i32

Returns the internal measure, the product of the extents.

It’s equivalent to length, area, and volume in 1, 2 and 3 dimensions.

source

pub const fn c_boundary(self) -> i32

Returns the external boundary, the sum of the extents.

It’s equivalent to 2, perimeter and surface area in 1, 2 and 3 dimensions.

source§

impl Extent<i32, 1>

source

pub const fn c_length(self) -> i32

The length of the 1d extent.

source§

impl Extent<i32, 2>

source

pub const fn c_area(self) -> i32

The area of the 2d extent.

source

pub const fn c_perimeter(self) -> i32

The perimeter of the 2d extent.

source§

impl Extent<i32, 3>

source

pub const fn c_volume(self) -> i32

The volume of the 3d extent.

source

pub const fn c_surface_area(self) -> i32

The surface area of the 3d extent.

source§

impl<const D: usize> Extent<i64, D>

source

pub const fn c_measure(self) -> i64

Returns the internal measure, the product of the extents.

It’s equivalent to length, area, and volume in 1, 2 and 3 dimensions.

source

pub const fn c_boundary(self) -> i64

Returns the external boundary, the sum of the extents.

It’s equivalent to 2, perimeter and surface area in 1, 2 and 3 dimensions.

source§

impl Extent<i64, 1>

source

pub const fn c_length(self) -> i64

The length of the 1d extent.

source§

impl Extent<i64, 2>

source

pub const fn c_area(self) -> i64

The area of the 2d extent.

source

pub const fn c_perimeter(self) -> i64

The perimeter of the 2d extent.

source§

impl Extent<i64, 3>

source

pub const fn c_volume(self) -> i64

The volume of the 3d extent.

source

pub const fn c_surface_area(self) -> i64

The surface area of the 3d extent.

source§

impl<const D: usize> Extent<i128, D>

source

pub const fn c_measure(self) -> i128

Returns the internal measure, the product of the extents.

It’s equivalent to length, area, and volume in 1, 2 and 3 dimensions.

source

pub const fn c_boundary(self) -> i128

Returns the external boundary, the sum of the extents.

It’s equivalent to 2, perimeter and surface area in 1, 2 and 3 dimensions.

source§

impl Extent<i128, 1>

source

pub const fn c_length(self) -> i128

The length of the 1d extent.

source§

impl Extent<i128, 2>

source

pub const fn c_area(self) -> i128

The area of the 2d extent.

source

pub const fn c_perimeter(self) -> i128

The perimeter of the 2d extent.

source§

impl Extent<i128, 3>

source

pub const fn c_volume(self) -> i128

The volume of the 3d extent.

source

pub const fn c_surface_area(self) -> i128

The surface area of the 3d extent.

source§

impl<const D: usize> Extent<isize, D>

source

pub const fn c_measure(self) -> isize

Returns the internal measure, the product of the extents.

It’s equivalent to length, area, and volume in 1, 2 and 3 dimensions.

source

pub const fn c_boundary(self) -> isize

Returns the external boundary, the sum of the extents.

It’s equivalent to 2, perimeter and surface area in 1, 2 and 3 dimensions.

source§

impl Extent<isize, 1>

source

pub const fn c_length(self) -> isize

The length of the 1d extent.

source§

impl Extent<isize, 2>

source

pub const fn c_area(self) -> isize

The area of the 2d extent.

source

pub const fn c_perimeter(self) -> isize

The perimeter of the 2d extent.

source§

impl Extent<isize, 3>

source

pub const fn c_volume(self) -> isize

The volume of the 3d extent.

source

pub const fn c_surface_area(self) -> isize

The surface area of the 3d extent.

source§

impl<const D: usize> Extent<u8, D>

source

pub const fn c_measure(self) -> u8

Returns the internal measure, the product of the extents.

It’s equivalent to length, area, and volume in 1, 2 and 3 dimensions.

source

pub const fn c_boundary(self) -> u8

Returns the external boundary, the sum of the extents.

It’s equivalent to 2, perimeter and surface area in 1, 2 and 3 dimensions.

source§

impl Extent<u8, 1>

source

pub const fn c_length(self) -> u8

The length of the 1d extent.

source§

impl Extent<u8, 2>

source

pub const fn c_area(self) -> u8

The area of the 2d extent.

source

pub const fn c_perimeter(self) -> u8

The perimeter of the 2d extent.

source§

impl Extent<u8, 3>

source

pub const fn c_volume(self) -> u8

The volume of the 3d extent.

source

pub const fn c_surface_area(self) -> u8

The surface area of the 3d extent.

source§

impl<const D: usize> Extent<u16, D>

source

pub const fn c_measure(self) -> u16

Returns the internal measure, the product of the extents.

It’s equivalent to length, area, and volume in 1, 2 and 3 dimensions.

source

pub const fn c_boundary(self) -> u16

Returns the external boundary, the sum of the extents.

It’s equivalent to 2, perimeter and surface area in 1, 2 and 3 dimensions.

source§

impl Extent<u16, 1>

source

pub const fn c_length(self) -> u16

The length of the 1d extent.

source§

impl Extent<u16, 2>

source

pub const fn c_area(self) -> u16

The area of the 2d extent.

source

pub const fn c_perimeter(self) -> u16

The perimeter of the 2d extent.

source§

impl Extent<u16, 3>

source

pub const fn c_volume(self) -> u16

The volume of the 3d extent.

source

pub const fn c_surface_area(self) -> u16

The surface area of the 3d extent.

source§

impl<const D: usize> Extent<u32, D>

source

pub const fn c_measure(self) -> u32

Returns the internal measure, the product of the extents.

It’s equivalent to length, area, and volume in 1, 2 and 3 dimensions.

source

pub const fn c_boundary(self) -> u32

Returns the external boundary, the sum of the extents.

It’s equivalent to 2, perimeter and surface area in 1, 2 and 3 dimensions.

source§

impl Extent<u32, 1>

source

pub const fn c_length(self) -> u32

The length of the 1d extent.

source§

impl Extent<u32, 2>

source

pub const fn c_area(self) -> u32

The area of the 2d extent.

source

pub const fn c_perimeter(self) -> u32

The perimeter of the 2d extent.

source§

impl Extent<u32, 3>

source

pub const fn c_volume(self) -> u32

The volume of the 3d extent.

source

pub const fn c_surface_area(self) -> u32

The surface area of the 3d extent.

source§

impl<const D: usize> Extent<u64, D>

source

pub const fn c_measure(self) -> u64

Returns the internal measure, the product of the extents.

It’s equivalent to length, area, and volume in 1, 2 and 3 dimensions.

source

pub const fn c_boundary(self) -> u64

Returns the external boundary, the sum of the extents.

It’s equivalent to 2, perimeter and surface area in 1, 2 and 3 dimensions.

source§

impl Extent<u64, 1>

source

pub const fn c_length(self) -> u64

The length of the 1d extent.

source§

impl Extent<u64, 2>

source

pub const fn c_area(self) -> u64

The area of the 2d extent.

source

pub const fn c_perimeter(self) -> u64

The perimeter of the 2d extent.

source§

impl Extent<u64, 3>

source

pub const fn c_volume(self) -> u64

The volume of the 3d extent.

source

pub const fn c_surface_area(self) -> u64

The surface area of the 3d extent.

source§

impl<const D: usize> Extent<u128, D>

source

pub const fn c_measure(self) -> u128

Returns the internal measure, the product of the extents.

It’s equivalent to length, area, and volume in 1, 2 and 3 dimensions.

source

pub const fn c_boundary(self) -> u128

Returns the external boundary, the sum of the extents.

It’s equivalent to 2, perimeter and surface area in 1, 2 and 3 dimensions.

source§

impl Extent<u128, 1>

source

pub const fn c_length(self) -> u128

The length of the 1d extent.

source§

impl Extent<u128, 2>

source

pub const fn c_area(self) -> u128

The area of the 2d extent.

source

pub const fn c_perimeter(self) -> u128

The perimeter of the 2d extent.

source§

impl Extent<u128, 3>

source

pub const fn c_volume(self) -> u128

The volume of the 3d extent.

source

pub const fn c_surface_area(self) -> u128

The surface area of the 3d extent.

source§

impl<const D: usize> Extent<usize, D>

source

pub const fn c_measure(self) -> usize

Returns the internal measure, the product of the extents.

It’s equivalent to length, area, and volume in 1, 2 and 3 dimensions.

source

pub const fn c_boundary(self) -> usize

Returns the external boundary, the sum of the extents.

It’s equivalent to 2, perimeter and surface area in 1, 2 and 3 dimensions.

source§

impl Extent<usize, 1>

source

pub const fn c_length(self) -> usize

The length of the 1d extent.

source§

impl Extent<usize, 2>

source

pub const fn c_area(self) -> usize

The area of the 2d extent.

source

pub const fn c_perimeter(self) -> usize

The perimeter of the 2d extent.

source§

impl Extent<usize, 3>

source

pub const fn c_volume(self) -> usize

The volume of the 3d extent.

source

pub const fn c_surface_area(self) -> usize

The surface area of the 3d extent.

source§

impl<const D: usize> Extent<f32, D>

source

pub fn measure(self) -> f32

Returns the internal measure, the product of the extents.

It’s equivalent to length, area, and volume in 1, 2 and 3 dimensions.

source

pub fn boundary(self) -> f32

Returns the external boundary, the sum of the extents.

It’s equivalent to 2, perimeter and surface area in 1, 2 and 3 dimensions.

source§

impl Extent<f32, 1>

source

pub fn length(self) -> f32

The length of the 1d extent.

source§

impl Extent<f32, 2>

source

pub fn area(self) -> f32

The area of the 2d extent.

source

pub fn perimeter(self) -> f32

The perimeter of the 2d extent.

source§

impl Extent<f32, 3>

source

pub fn volume(self) -> f32

The volume of the 3d extent.

source

pub fn surface_area(self) -> f32

The surface area of the 3d extent.

source§

impl<const D: usize> Extent<f64, D>

source

pub fn measure(self) -> f64

Returns the internal measure, the product of the extents.

It’s equivalent to length, area, and volume in 1, 2 and 3 dimensions.

source

pub fn boundary(self) -> f64

Returns the external boundary, the sum of the extents.

It’s equivalent to 2, perimeter and surface area in 1, 2 and 3 dimensions.

source§

impl Extent<f64, 1>

source

pub fn length(self) -> f64

The length of the 1d extent.

source§

impl Extent<f64, 2>

source

pub fn area(self) -> f64

The area of the 2d extent.

source

pub fn perimeter(self) -> f64

The perimeter of the 2d extent.

source§

impl Extent<f64, 3>

source

pub fn volume(self) -> f64

The volume of the 3d extent.

source

pub fn surface_area(self) -> f64

The surface area of the 3d extent.

Trait Implementations§

source§

impl<T: Clone, const D: usize> Clone for Extent<T, D>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: ConstDefault, const D: usize> ConstDefault for Extent<T, D>

source§

const DEFAULT: Self = _

Returns the compile-time “default value” for a type.
source§

impl<T: Debug, const D: usize> Debug for Extent<T, D>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: Default, const D: usize> Default for Extent<T, D>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<T: Display, const D: usize> Display for Extent<T, D>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: Hash, const D: usize> Hash for Extent<T, D>

source§

fn hash<HR: Hasher>(&self, state: &mut HR)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<T: Ord, const D: usize> Ord for Extent<T, D>

source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl<T: PartialEq, const D: usize> PartialEq for Extent<T, D>

source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<T: PartialOrd, const D: usize> PartialOrd for Extent<T, D>

source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<T: Copy, const D: usize> Copy for Extent<T, D>

source§

impl<T: Eq, const D: usize> Eq for Extent<T, D>

Auto Trait Implementations§

§

impl<T, const D: usize> Freeze for Extent<T, D>
where T: Freeze,

§

impl<T, const D: usize> RefUnwindSafe for Extent<T, D>
where T: RefUnwindSafe,

§

impl<T, const D: usize> Send for Extent<T, D>
where T: Send,

§

impl<T, const D: usize> Sync for Extent<T, D>
where T: Sync,

§

impl<T, const D: usize> Unpin for Extent<T, D>
where T: Unpin,

§

impl<T, const D: usize> UnwindSafe for Extent<T, D>
where T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Also for T

source§

fn also_mut<F: FnOnce(&mut Self)>(self, f: F) -> Self

Applies a function which takes the parameter by exclusive reference, and then returns the (possibly) modified owned value. Read more
source§

fn also_ref<F: FnOnce(&Self)>(self, f: F) -> Self

Applies a function which takes the parameter by shared reference, and then returns the (possibly) modified owned value. Read more
source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T, Res> Apply<Res> for T
where T: ?Sized,

source§

fn apply<F: FnOnce(Self) -> Res>(self, f: F) -> Res
where Self: Sized,

Apply a function which takes the parameter by value.
source§

fn apply_ref<F: FnOnce(&Self) -> Res>(&self, f: F) -> Res

Apply a function which takes the parameter by shared reference.
source§

fn apply_mut<F: FnOnce(&mut Self) -> Res>(&mut self, f: F) -> Res

Apply a function which takes the parameter by exclusive reference.
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> ByteSized for T

source§

const BYTE_ALIGN: usize = _

The alignment of this type in bytes.
source§

const BYTE_SIZE: usize = _

The size of this type in bytes.
source§

const PTR_BYTES: usize = 8usize

The size of a pointer in bytes, for the current platform.
source§

const PTR_BITS: usize = 64usize

The size of a pointer in bits, for the current platform.
source§

const LITTLE_ENDIAN: bool = true

True if the system’s architecture is little-endian.
source§

const BIG_ENDIAN: bool = false

True if the system’s architecture is big-endian.
source§

fn byte_align(&self) -> usize

Returns the alignment of this type in bytes.
source§

fn byte_size(&self) -> usize

Returns the size of this type in bytes. Read more
source§

fn ptr_size_ratio(&self) -> [usize; 2]

Returns the size ratio between PTR_BYTES and BYTE_SIZE. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> CloneToUninit for T
where T: Copy,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> ExtAny for T
where T: Any + ?Sized,

source§

fn type_of(&self) -> TypeId

Returns the TypeId of self. Read more
source§

fn type_name(&self) -> &'static str

Returns the type name of self. Read more
source§

fn type_is<T: 'static>(&self) -> bool

Returns true if Self is of type T. Read more
source§

fn as_any_ref(&self) -> &dyn Any
where Self: Sized,

Upcasts &self as &dyn Any. Read more
source§

fn as_any_mut(&mut self) -> &mut dyn Any
where Self: Sized,

Upcasts &mut self as &mut dyn Any. Read more
source§

fn as_any_box(self: Box<Self>) -> Box<dyn Any>
where Self: Sized,

Upcasts Box<self> as Box<dyn Any>. Read more
source§

fn downcast_ref<T: 'static>(&self) -> Option<&T>

Available on crate feature unsafe_dyn only.
Returns some shared reference to the inner value if it is of type T. Read more
source§

fn downcast_mut<T: 'static>(&mut self) -> Option<&mut T>

Available on crate feature unsafe_dyn only.
Returns some exclusive reference to the inner value if it is of type T. Read more
source§

impl<T> ExtMem for T
where T: ?Sized,

source§

const NEEDS_DROP: bool = _

Know whether dropping values of this type matters, in compile-time.
source§

fn mem_needs_drop(&self) -> bool

Returns true if dropping values of this type matters. Read more
source§

fn mem_drop(self)
where Self: Sized,

Drops self by running its destructor. Read more
source§

fn mem_forget(self)
where Self: Sized,

Forgets about self without running its destructor. Read more
source§

fn mem_replace(&mut self, other: Self) -> Self
where Self: Sized,

Replaces self with other, returning the previous value of self. Read more
source§

fn mem_take(&mut self) -> Self
where Self: Default,

Replaces self with its default value, returning the previous value of self. Read more
source§

fn mem_swap(&mut self, other: &mut Self)
where Self: Sized,

Swaps the value of self and other without deinitializing either one. Read more
source§

fn mem_as_bytes(&self) -> &[u8]
where Self: Sync + Unpin,

Available on crate feature unsafe_slice only.
View a Sync + Unpin self as &[u8]. Read more
source§

fn mem_as_bytes_mut(&mut self) -> &mut [u8]
where Self: Sync + Unpin,

Available on crate feature unsafe_slice only.
View a Sync + Unpin self as &mut [u8].
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.