Image

Struct Image 

Source
pub struct Image { /* private fields */ }
Expand description

\class Image \brief The Image class for SimpleITK

This Image class can represent 2D, 3D, and 4D images. The pixel types may be a scalar, a multi-component vector or a run-length-encoded (RLE) “label”. The dimension, pixel type and size is specified at construction.

A fundamental concept of ITK images is that they occupy physical space where the image is defined by an origin, spacing, and direction cosine matrix. The attributes are taken into consideration when doing most operations on an image. A meta-data dictionary is also associated with the image, which may contain additional fields from reading but these attributes are not propagated by image filters.

The SimpleITK Image provides a single facade interface to several ITK image types. Internally, the SimpleITK Image maintains a pointer to the ITK image class, and performs reference counting and lazy copying. This means that deep copying of an image including it’s buffer is delayed until the image is modified. This removes the need to use pointers to SimpleITK Image class, as copying and returning by value do not unnecessarily duplicate the data.

\sa itk::Image itk::VectorImage itk::LabelMap itk::ImageBase

Implementations§

Source§

impl Image

Source

pub fn GetITKBase(self: Pin<&mut Self>) -> *mut DataObject

Get access to internal ITK data object.

The return value should immediately be assigned to as itk::SmartPointer.

In many cases the value may need to be dynamically casted to the actual image type. The GetPixelIDValue() method should return an PixelID which identifies the image type which the DataObject points to.

If this object has been moved, then nullptr is returned.

@{

Source§

impl Image

Source

pub fn GetITKBase1(&self) -> *const DataObject

Source§

impl Image

Source

pub fn GetPixelID(&self) -> PixelIDValueEnum

Get the pixel type

The pixel type is set at construction type and can not be manually changed, unless by assignment. The value may be -1 or “Unknown”.

Source§

impl Image

Source

pub fn GetPixelIDValue(&self) -> c_int

Source§

impl Image

Source

pub fn GetDimension(&self) -> c_uint

Get the number of physical dimensions.

Only the spatial dimensions are considered here. These are the dimensions the origin, spacing and direction cosine matrix are applicable to. This does not include the pixels’ vector index as a dimension.

Source§

impl Image

Source

pub fn GetNumberOfComponentsPerPixel(&self) -> c_uint

\brief Get the number of components for each pixel

For images with scalar or complex pixel types this method returns one. For images with a vector pixel type the method returns the number of vector components per pixel.

Source§

impl Image

Source

pub fn GetNumberOfPixels(&self) -> u64

\brief Get the number of pixels in the image

To calculate the total number of values stored continuously for the image’s buffer, the NumberOfPixels should be multiplied by NumberOfComponentsPerPixel in order to account for multiple component images.

Source§

impl Image

Source

pub fn GetSizeOfPixelComponent(&self) -> c_uint

\brief Get the number of bytes per component of a pixel.

Returns the sizeof the pixel component type.

Source§

impl Image

Source

pub fn SetOrigin(self: Pin<&mut Self>, origin: &CxxVector<f64>)

Source§

impl Image

Source

pub fn SetSpacing(self: Pin<&mut Self>, spacing: &CxxVector<f64>)

Source§

impl Image

Source

pub fn SetDirection(self: Pin<&mut Self>, direction: &CxxVector<f64>)

Source§

impl Image

Source

pub fn IsCongruentImageGeometry( &self, otherImage: &Image, coordinateTolerance: f64, directionTolerance: f64, ) -> bool

Checks whether the images’ pixels at the same index occupy the same physical space.

Compares the origin, spacing, and direction for equality within provided tolerances. There is no check for matching regions in between the images.

If The dimensions of the images do not match, false is returned.

Source§

impl Image

Source

pub fn IsSameImageGeometryAs( &self, otherImage: &Image, arg1: f64, arg2: f64, ) -> bool

Check whether the images have the same grid in physical space.

Compares largest possible regions for equality, and the origin, spacing, and direction cosines for equality within provided tolerances.

If the dimensions of the images do not match, false is returned.

Source§

impl Image

Source

pub fn GetWidth(&self) -> c_uint

Get the number of pixels the Image is in the first dimension

Source§

impl Image

Source

pub fn GetHeight(&self) -> c_uint

Get the number of pixels the Image is in the second dimension

Source§

impl Image

Source

pub fn GetDepth(&self) -> c_uint

Get the number of pixels the Image is in the third dimension or 0 if the Image is only 2D

Source§

impl Image

Source

pub fn CopyInformation(self: Pin<&mut Self>, srcImage: &Image)

\brief Copy common meta-data from an image to this one.

Copies the Origin, Spacing, and Direction from the source image to this image. The meta-data dictionary is \b not copied.

It is required for the source Image’s dimension and size to match, this image’s attributes, otherwise an exception will be generated.

Source§

impl Image

Source

pub fn HasMetaDataKey(&self, key: &CxxString) -> bool

\brief Query the meta-data dictionary for the existence of a key.

Source§

impl Image

Source

pub fn SetMetaData(self: Pin<&mut Self>, key: &CxxString, value: &CxxString)

\brief Set an entry in the meta-data dictionary.

Replaces or creates an entry in the image’s meta-data dictionary.

Source§

impl Image

Source

pub fn EraseMetaData(self: Pin<&mut Self>, key: &CxxString) -> bool

\brief Remove an entry from the meta-data dictionary.

Returns true, when the value exists in the dictionary and is removed, false otherwise.

Source§

impl Image

Source

pub fn GetPixelAsInt8(&self, idx: &CxxVector<u32>) -> i8

\brief Get the value of a pixel

Returns the value of a pixel for the given index. The index follows standard SimpleITK conventions for it’s length. The correct method must be called for the underlying Image type, otherwise an exception will be thrown.

\param idx the zero based index into the image. It’s length must be at least the value of GetDimension(), additional elements will be ignored. Boundary checking is performed on idx, if it is out of bounds an exception will be thrown.

\sa Image::GetPixelIDValue @{

Source§

impl Image

Source

pub fn GetPixelAsUInt8(&self, idx: &CxxVector<u32>) -> u8

Source§

impl Image

Source

pub fn GetPixelAsInt16(&self, idx: &CxxVector<u32>) -> i16

Source§

impl Image

Source

pub fn GetPixelAsUInt16(&self, idx: &CxxVector<u32>) -> u16

Source§

impl Image

Source

pub fn GetPixelAsInt32(&self, idx: &CxxVector<u32>) -> i32

Source§

impl Image

Source

pub fn GetPixelAsUInt32(&self, idx: &CxxVector<u32>) -> u32

Source§

impl Image

Source

pub fn GetPixelAsInt64(&self, idx: &CxxVector<u32>) -> i64

Source§

impl Image

Source

pub fn GetPixelAsUInt64(&self, idx: &CxxVector<u32>) -> u64

Source§

impl Image

Source

pub fn GetPixelAsFloat(&self, idx: &CxxVector<u32>) -> f32

Source§

impl Image

Source

pub fn GetPixelAsDouble(&self, idx: &CxxVector<u32>) -> f64

Source§

impl Image

Source

pub fn SetPixelAsInt8(self: Pin<&mut Self>, idx: &CxxVector<u32>, v: i8)

\brief Set the value of a pixel

Set the value of a pixel at the provided index. The index follows standard SimpleITK conventions for it’s length. The correct method must be called which should match the underlying image type, otherwise an exception will be thrown.

\param idx the zero based index into the image. It’s length must be at least the value of GetDimension(), additional elements will be ignored. Boundary checking is performed on idx, if it is out of bounds an exception will be thrown. \param v value to set the pixel to

\sa Image::GetPixelIDValue @{

Source§

impl Image

Source

pub fn SetPixelAsUInt8(self: Pin<&mut Self>, idx: &CxxVector<u32>, v: u8)

Source§

impl Image

Source

pub fn SetPixelAsInt16(self: Pin<&mut Self>, idx: &CxxVector<u32>, v: i16)

Source§

impl Image

Source

pub fn SetPixelAsUInt16(self: Pin<&mut Self>, idx: &CxxVector<u32>, v: u16)

Source§

impl Image

Source

pub fn SetPixelAsInt32(self: Pin<&mut Self>, idx: &CxxVector<u32>, v: i32)

Source§

impl Image

Source

pub fn SetPixelAsUInt32(self: Pin<&mut Self>, idx: &CxxVector<u32>, v: u32)

Source§

impl Image

Source

pub fn SetPixelAsInt64(self: Pin<&mut Self>, idx: &CxxVector<u32>, v: i64)

Source§

impl Image

Source

pub fn SetPixelAsUInt64(self: Pin<&mut Self>, idx: &CxxVector<u32>, v: u64)

Source§

impl Image

Source

pub fn SetPixelAsFloat(self: Pin<&mut Self>, idx: &CxxVector<u32>, v: f32)

Source§

impl Image

Source

pub fn SetPixelAsDouble(self: Pin<&mut Self>, idx: &CxxVector<u32>, v: f64)

Source§

impl Image

Source

pub fn SetPixelAsVectorInt8( self: Pin<&mut Self>, idx: &CxxVector<u32>, v: &CxxVector<i8>, )

Source§

impl Image

Source

pub fn SetPixelAsVectorUInt8( self: Pin<&mut Self>, idx: &CxxVector<u32>, v: &CxxVector<u8>, )

Source§

impl Image

Source

pub fn SetPixelAsVectorInt16( self: Pin<&mut Self>, idx: &CxxVector<u32>, v: &CxxVector<i16>, )

Source§

impl Image

Source

pub fn SetPixelAsVectorUInt16( self: Pin<&mut Self>, idx: &CxxVector<u32>, v: &CxxVector<u16>, )

Source§

impl Image

Source

pub fn SetPixelAsVectorInt32( self: Pin<&mut Self>, idx: &CxxVector<u32>, v: &CxxVector<i32>, )

Source§

impl Image

Source

pub fn SetPixelAsVectorUInt32( self: Pin<&mut Self>, idx: &CxxVector<u32>, v: &CxxVector<u32>, )

Source§

impl Image

Source

pub fn SetPixelAsVectorInt64( self: Pin<&mut Self>, idx: &CxxVector<u32>, v: &CxxVector<i64>, )

Source§

impl Image

Source

pub fn SetPixelAsVectorUInt64( self: Pin<&mut Self>, idx: &CxxVector<u32>, v: &CxxVector<u64>, )

Source§

impl Image

Source

pub fn SetPixelAsVectorFloat32( self: Pin<&mut Self>, idx: &CxxVector<u32>, v: &CxxVector<f32>, )

Source§

impl Image

Source

pub fn SetPixelAsVectorFloat64( self: Pin<&mut Self>, idx: &CxxVector<u32>, v: &CxxVector<f64>, )

Source§

impl Image

Source

pub fn GetBufferAsInt8(self: Pin<&mut Self>) -> *mut i8

\brief Get a pointer to the image buffer \warning this is dangerous

The size of the buffer is the number of componentsXsizeYsize and then Zsize of a 3D image. The buffer should be accessed as a 1-D array. For example a 3D image buffer should be accessed: \code uint8_t buffer = img->GetBufferAsUInt8(); buffer[c + numComponents(x+xSize*(y+ySize*z))] \endcode

The pointer to the buffer is not referenced counted. Additionally, while this image is made unique before returning the pointer, additional copying and usage may introduce unexpected aliasing of the image’s buffer.

Vector and Complex pixel types are both accessed via the appropriate component type method.

The correct method for the current pixel type of the image must be called or else an exception will be generated. For vector pixel types the type of the component of the vector must be called.

\sa Image::GetPixelIDValue @{

Source§

impl Image

Source

pub fn GetBufferAsUInt8(self: Pin<&mut Self>) -> *mut u8

Source§

impl Image

Source

pub fn GetBufferAsInt16(self: Pin<&mut Self>) -> *mut i16

Source§

impl Image

Source

pub fn GetBufferAsUInt16(self: Pin<&mut Self>) -> *mut u16

Source§

impl Image

Source

pub fn GetBufferAsInt32(self: Pin<&mut Self>) -> *mut i32

Source§

impl Image

Source

pub fn GetBufferAsUInt32(self: Pin<&mut Self>) -> *mut u32

Source§

impl Image

Source

pub fn GetBufferAsInt64(self: Pin<&mut Self>) -> *mut i64

Source§

impl Image

Source

pub fn GetBufferAsUInt64(self: Pin<&mut Self>) -> *mut u64

Source§

impl Image

Source

pub fn GetBufferAsFloat(self: Pin<&mut Self>) -> *mut f32

Source§

impl Image

Source

pub fn GetBufferAsDouble(self: Pin<&mut Self>) -> *mut f64

Source§

impl Image

Source

pub fn GetBufferAsVoid(self: Pin<&mut Self>) -> *mut c_void

Source§

impl Image

Source§

impl Image

Source§

impl Image

Source§

impl Image

Source§

impl Image

Source§

impl Image

Source§

impl Image

Source§

impl Image

Source§

impl Image

Source§

impl Image

Source§

impl Image

Source§

impl Image

Source

pub fn MakeUnique(self: Pin<&mut Self>)

\brief Performs actually coping if needed to make object unique.

The Image class by default performs lazy coping and assignment. This method make sure that coping actually happens to the itk::Image pointed to is only pointed to by this object.

Source§

impl Image

Source

pub fn IsUnique(&self) -> bool

\brief Returns true if no other SimpleITK Image object refers to the same internal data structure.

Source§

impl Image

Source

pub fn ProxyForInPlaceOperation<'a>( self: Pin<&'a mut Image>, ) -> impl New<Output = Image> + 'a

\brief Advanced method not commonly needed

This method is designed to support implementations “in-place” object behavior for methods which operate on r-value references. The returned image is a new image which has a low level pointer to this object’s image buffer, without the SimpleITK or ITK reference counting. This is implemented by setting the new ITK Image’s buffer to the same as this objects without ownership.

\warning This method bypasses the SimpleITK reference counting, and the reference needs to be manually maintained in the scope. The resulting object is designed only to be a temporary.

In the following example this method is used instead of an std::move call when the filter’s first argument takes an r-value reference. The img object will container the results of the filter execution, and the img image buffer will be preserved in case of exceptions, and the meta-data will remain in the img object. \code filter.Execute( img.ProxyForInPlaceOperation() ); \endcode

The meta-data dictionary is not copied to the returned proxy image.

Source

pub fn GetPixelIDTypeAsString(self: &Image) -> UniquePtr<CxxString>

Return the pixel type as a human readable string value.

Source

pub fn GetOrigin(self: &Image) -> UniquePtr<CxxVector<f64>>

Get/Set the Origin in physical space @{

Source

pub fn GetSpacing(self: &Image) -> UniquePtr<CxxVector<f64>>

Get/Set the Spacing of the Image as an std::vector .

The spacing describes the physical size of each pixel. The length of the vector is equal to the dimension of the Image. @{

Source

pub fn GetDirection(self: &Image) -> UniquePtr<CxxVector<f64>>

\brief Set/Get the Direction

Internally, the Direction is represented by a matrix 2x2 for a 2D and 3x3 for a 3D image. The matrix is passed as a 1D array in row-major form. @{

Source

pub fn TransformIndexToPhysicalPoint( self: &Image, index: &CxxVector<i64>, ) -> UniquePtr<CxxVector<f64>>

Transform index to physical point

Source

pub fn TransformPhysicalPointToIndex( self: &Image, point: &CxxVector<f64>, ) -> UniquePtr<CxxVector<i64>>

Transform physical point to index

Source

pub fn TransformPhysicalPointToContinuousIndex( self: &Image, point: &CxxVector<f64>, ) -> UniquePtr<CxxVector<f64>>

Transform physical point to continuous index

Source

pub fn TransformContinuousIndexToPhysicalPoint( self: &Image, index: &CxxVector<f64>, ) -> UniquePtr<CxxVector<f64>>

Transform continuous index to physical point

Source

pub fn EvaluateAtContinuousIndex( self: &Image, index: &CxxVector<f64>, interp: InterpolatorEnum, ) -> UniquePtr<CxxVector<f64>>

\brief Interpolate pixel value at a continuous index.

This method is not supported for Label pixel types.

The valid range of continuous index is [-0.5, size-0.5] for each dimension. An exception is thrown if index is out of bounds.

@param index The continuous index must be at least the length of the image dimension. @param interp The interpolation type to use, only sitkNearest and sitkLinear are supported for Vector and Complex pixel types.

@return All supported pixel types are returned as an array, where complex numbers are returned with the real followed by the complex component.

Source

pub fn EvaluateAtPhysicalPoint( self: &Image, point: &CxxVector<f64>, interp: InterpolatorEnum, ) -> UniquePtr<CxxVector<f64>>

Interpolate pixel value at a physical point.

This method is not supported for Label pixel types.

An exception is thrown if the point is out of the defined region for the image.

@param point The physical point at which the interpolation is computed. @param interp The interpolation type to use, only sitkNearest and sitkLinear are supported for Vector and Complex pixel types.

@return All supported pixel types are returned as an array, where complex numbers are returned with the real followed by the complex component.

Source

pub fn GetMetaDataKeys(self: &Image) -> UniquePtr<CxxVector<CxxString>>

\brief get a vector of keys in from the meta-data dictionary

Returns a vector of keys to the key/value entries in the image’s meta-data dictionary. Iterate through with these keys to get the values.

Source

pub fn GetMetaData(self: &Image, key: &CxxString) -> UniquePtr<CxxString>

\brief Get the value of a meta-data dictionary entry as a string.

If the key is not in the dictionary then an exception is thrown.

string types in the dictionary are returned as their native strings. Other types are printed to string before returning.

Source

pub fn ToString(self: &Image) -> UniquePtr<CxxString>

Source

pub fn ToVectorImage<'a>( self: Pin<&'a mut Image>, inPlace: bool, ) -> impl New<Output = Image> + 'a

\brief Convert the first dimension to the components for image with vector pixel type.

This method will convert a scalar image to a vector image with the number of components equal to the size of the first dimension. If the image is already a vector image then the image is returned.

The components of the direction cosine matrix for the first dimension must be the identity matrix, or else an exception is thrown.

An exception is thrown if the image is 2D or if the pixel type is a label or complex pixel type.

\param inPlace If true then the image is made unique and converted in place updating this image, otherwise a copy of the image is made and returned.

\sa ToScalarImage

Source

pub fn ToScalarImage<'a>( self: Pin<&'a mut Image>, inPlace: bool, ) -> impl New<Output = Image> + 'a

\brief Convert a image of vector pixel type to a scalar image with N+1 dimensions.

This method will convert a vector image to a scalar image with the size of the first dimension equal to the number of components. If the image is already a scalar image then the image is returned.

For the additional dimension the origin is set to zero, the spacing to one, and the new components of the direction cosine to the identity matrix.

An exception is thrown if the image is has SITK_MAX_DIMENSION dimensions or if the pixel type is a label or complex pixel type.

\param inPlace If true then the image is made unique and converted in place updating this image, otherwise a copy of the image is made and returned.

\sa ToVectorImage

Source

pub fn GetPixelAsVectorInt8( self: &Image, idx: &CxxVector<u32>, ) -> UniquePtr<CxxVector<i8>>

Source

pub fn GetPixelAsVectorUInt8( self: &Image, idx: &CxxVector<u32>, ) -> UniquePtr<CxxVector<u8>>

Source

pub fn GetPixelAsVectorInt16( self: &Image, idx: &CxxVector<u32>, ) -> UniquePtr<CxxVector<i16>>

Source

pub fn GetPixelAsVectorUInt16( self: &Image, idx: &CxxVector<u32>, ) -> UniquePtr<CxxVector<u16>>

Source

pub fn GetPixelAsVectorInt32( self: &Image, idx: &CxxVector<u32>, ) -> UniquePtr<CxxVector<i32>>

Source

pub fn GetPixelAsVectorUInt32( self: &Image, idx: &CxxVector<u32>, ) -> UniquePtr<CxxVector<u32>>

Source

pub fn GetPixelAsVectorInt64( self: &Image, idx: &CxxVector<u32>, ) -> UniquePtr<CxxVector<i64>>

Source

pub fn GetPixelAsVectorUInt64( self: &Image, idx: &CxxVector<u32>, ) -> UniquePtr<CxxVector<u64>>

Source

pub fn GetPixelAsVectorFloat32( self: &Image, idx: &CxxVector<u32>, ) -> UniquePtr<CxxVector<f32>>

Source

pub fn GetPixelAsVectorFloat64( self: &Image, idx: &CxxVector<u32>, ) -> UniquePtr<CxxVector<f64>>

Source

pub fn GetPixelAsComplexFloat32( self: &Image, idx: &CxxVector<u32>, ) -> UniquePtr<std_complex_float_AutocxxConcrete>

Source

pub fn GetPixelAsComplexFloat64( self: &Image, idx: &CxxVector<u32>, ) -> UniquePtr<std_complex_double_AutocxxConcrete>

Source

pub fn SetPixelAsComplexFloat32( self: Pin<&mut Image>, idx: &CxxVector<u32>, v: impl ValueParam<std_complex_float_AutocxxConcrete>, )

Source

pub fn SetPixelAsComplexFloat64( self: Pin<&mut Image>, idx: &CxxVector<u32>, v: impl ValueParam<std_complex_double_AutocxxConcrete>, )

Source

pub fn new() -> impl New<Output = Self>

\brief Default constructor, creates an image of size 0

Source

pub fn new3( width: c_uint, height: c_uint, valueEnum: PixelIDValueEnum, ) -> impl New<Output = Self>

\brief Constructors for 2D, 3D an optionally 4D images where pixel type and number of components can be specified.

If the pixel type is a scalar or a label pixel type, then the number of components must be specified as 0 or 1.

If the pixel type is a vector pixel type, then the number of components defaults to the image dimension, unless the numberOfComponents is explicitly specified.

Unlike the standard convention for Dimensional Vectors the size parameter must be the exact dimension requesting. That is, it must be of length 2 of a 2D image, 3 for a 3D image and 4 for a 4D image. @{

Source

pub fn new4( width: c_uint, height: c_uint, depth: c_uint, valueEnum: PixelIDValueEnum, ) -> impl New<Output = Self>

Trait Implementations§

Source§

impl CopyNew for Image

Source§

unsafe fn copy_new(img: &Image, this: Pin<&mut MaybeUninit<Image>>)

Copy-construct src into this, effectively re-pinning it at a new location. Read more
Source§

impl Drop for Image

Source§

fn drop(self: &mut Image)

Executes the destructor for this type. Read more
Source§

impl ExternType for Image

Source§

type Id = (i, t, k, (), s, i, m, p, l, e, (), I, m, a, g, e)

A type-level representation of the type’s C++ namespace and type name. Read more
Source§

type Kind = Opaque

Source§

impl MakeCppStorage for Image

Source§

unsafe fn allocate_uninitialized_cpp_storage() -> *mut Image

Allocates heap space for this type in C++ and return a pointer to that space, but do not initialize that space (i.e. do not yet call a constructor). Read more
Source§

unsafe fn free_uninitialized_cpp_storage(arg0: *mut Image)

Frees a C++ allocation which has not yet had a constructor called. Read more
Source§

impl MoveNew for Image

Source§

unsafe fn move_new( img: Pin<MoveRef<'_, Image>>, this: Pin<&mut MaybeUninit<Image>>, )

\brief Move constructor and assignment.

@param img After the operation img is valid only for destructing and assignment; all other operations have undefined behavior.

Source§

impl SharedPtrTarget for Image

Source§

impl UniquePtrTarget for Image

Source§

impl VectorElement for Image

Source§

impl WeakPtrTarget for Image

Auto Trait Implementations§

§

impl !Freeze for Image

§

impl !RefUnwindSafe for Image

§

impl !Send for Image

§

impl !Sync for Image

§

impl Unpin for Image

§

impl UnwindSafe for Image

Blanket Implementations§

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> 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> 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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>,

Source§

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.