ID2D1RenderTargetVtbl

Struct ID2D1RenderTargetVtbl 

Source
#[repr(C)]
pub struct ID2D1RenderTargetVtbl {
Show 54 fields pub parent: ID2D1ResourceVtbl, pub CreateBitmap: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, size: D2D1_SIZE_U, srcData: *const c_void, pitch: UINT32, bitmapProperties: *const D2D1_BITMAP_PROPERTIES, bitmap: *mut *mut ID2D1Bitmap) -> HRESULT, pub CreateBitmapFromWicBitmap: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, wicBitmapSource: *mut IWICBitmapSource, bitmapProperties: *const D2D1_BITMAP_PROPERTIES, bitmap: *mut *mut ID2D1Bitmap) -> HRESULT, pub CreateSharedBitmap: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, riid: REFIID, data: *const c_void, bitmapProperties: *const D2D1_BITMAP_PROPERTIES, bitmap: *mut *mut ID2D1Bitmap) -> HRESULT, pub CreateBitmapBrush: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, bitmap: *mut ID2D1Bitmap, bitmapBrushProperties: *const D2D1_BITMAP_BRUSH_PROPERTIES, brushProperties: *const D2D1_BRUSH_PROPERTIES, bitmapBrush: *mut *mut ID2D1BitmapBrush) -> HRESULT, pub CreateSolidColorBrush: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, color: *const D2D1_COLOR_F, brushProperties: *const D2D1_BRUSH_PROPERTIES, solidColorBrush: *mut *mut ID2D1SolidColorBrush) -> HRESULT, pub CreateGradientStopCollection: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, gradientStops: *const D2D1_GRADIENT_STOP, gradientStopsCount: UINT32, colorInterpolationGamma: D2D1_GAMMA, extendMode: D2D1_EXTEND_MODE, gradientStopCollection: *mut *mut ID2D1GradientStopCollection) -> HRESULT, pub CreateLinearGradientBrush: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, linearGradientBrushProperties: *const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES, brushProperties: *const D2D1_BRUSH_PROPERTIES, gradientStopCollection: *mut ID2D1GradientStopCollection, linearGradientBrush: *mut *mut ID2D1LinearGradientBrush) -> HRESULT, pub CreateRadialGradientBrush: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, radialGradientBrushProperties: *const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES, brushProperties: *const D2D1_BRUSH_PROPERTIES, gradientStopCollection: *mut ID2D1GradientStopCollection, radialGradientBrush: *mut *mut ID2D1RadialGradientBrush) -> HRESULT, pub CreateCompatibleRenderTarget: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, desiredSize: *const D2D1_SIZE_F, desiredPixelSize: *const D2D1_SIZE_U, desiredFormat: *const D2D1_PIXEL_FORMAT, options: D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS, bitmapRenderTarget: *mut *mut ID2D1BitmapRenderTarget) -> HRESULT, pub CreateLayer: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, size: *const D2D1_SIZE_F, layer: *mut *mut ID2D1Layer) -> HRESULT, pub CreateMesh: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, mesh: *mut *mut ID2D1Mesh) -> HRESULT, pub DrawLine: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, point0: D2D1_POINT_2F, point1: D2D1_POINT_2F, brush: *mut ID2D1Brush, strokeWidth: FLOAT, strokeStype: *mut ID2D1StrokeStyle), pub DrawRectangle: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, rect: *const D2D1_RECT_F, brush: *mut ID2D1Brush, strokeWidth: FLOAT, strokeStyle: *mut ID2D1StrokeStyle), pub FillRectangle: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, rect: *const D2D1_RECT_F, brush: *mut ID2D1Brush), pub DrawRoundedRectangle: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, roundedRect: *const D2D1_ROUNDED_RECT, brush: *mut ID2D1Brush, strokeWidth: FLOAT, strokeStyle: *mut ID2D1StrokeStyle), pub FillRoundedRectangle: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, roundedRect: *const D2D1_ROUNDED_RECT, brush: *mut ID2D1Brush), pub DrawEllipse: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, ellipse: *const D2D1_ELLIPSE, brush: *mut ID2D1Brush, strokeWidth: FLOAT, strokeStyle: *mut ID2D1StrokeStyle), pub FillEllipse: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, ellipse: *const D2D1_ELLIPSE, brush: *mut ID2D1Brush), pub DrawGeometry: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, geometry: *mut ID2D1Geometry, brush: *mut ID2D1Brush, strokeWidth: FLOAT, strokeStyle: *mut ID2D1StrokeStyle), pub FillGeometry: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, geometry: *mut ID2D1Geometry, brush: *mut ID2D1Brush, opacityBrush: *mut ID2D1Brush), pub FillMesh: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, mesh: *mut ID2D1Mesh, brush: *const ID2D1Brush), pub FillOpacityMask: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, opacityMask: *mut ID2D1Bitmap, brush: *mut ID2D1Brush, content: D2D1_OPACITY_MASK_CONTENT, destinationRectangle: *const D2D1_RECT_F, sourceRectangle: *const D2D1_RECT_F), pub DrawBitmap: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, bitmap: *mut ID2D1Bitmap, destinationRectangle: *const D2D1_RECT_F, opacity: FLOAT, interpolationMode: D2D1_BITMAP_INTERPOLATION_MODE, sourceRectangle: *const D2D1_RECT_F), pub DrawText: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, string: *const WCHAR, stringLength: UINT32, textFormat: *mut IDWriteTextFormat, layoutRect: *const D2D1_RECT_F, defaultForegroundBrush: *mut ID2D1Brush, options: D2D1_DRAW_TEXT_OPTIONS, measuringMode: DWRITE_MEASURING_MODE), pub DrawTextLayout: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, origin: D2D1_POINT_2F, textLayout: *mut IDWriteTextLayout, defaultForegroundBrush: *mut ID2D1Brush, options: D2D1_DRAW_TEXT_OPTIONS), pub DrawGlyphRun: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, baselineOrigin: D2D1_POINT_2F, glyphRun: *const DWRITE_GLYPH_RUN, foregroundBrush: *mut ID2D1Brush, measuringMode: DWRITE_MEASURING_MODE), pub SetTransform: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, transform: *const D2D1_MATRIX_3X2_F), pub GetTransform: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, transform: *mut D2D1_MATRIX_3X2_F), pub SetAntialiasMode: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, antialiasMode: D2D1_ANTIALIAS_MODE), pub GetAntialiasMode: unsafe extern "system" fn(This: *mut ID2D1RenderTarget) -> D2D1_ANTIALIAS_MODE, pub SetTextAntialiasMode: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, textAntialiasMode: D2D1_TEXT_ANTIALIAS_MODE), pub GetTextAntialiasMode: unsafe extern "system" fn(This: *mut ID2D1RenderTarget) -> D2D1_TEXT_ANTIALIAS_MODE, pub SetTextRenderingParams: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, textRenderingParams: *mut IDWriteRenderingParams), pub GetTextRenderingParams: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, textRenderingParams: *mut *mut IDWriteRenderingParams), pub SetTags: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, tag1: D2D1_TAG, tag2: D2D1_TAG), pub GetTags: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, tag1: *mut D2D1_TAG, tag2: *mut D2D1_TAG), pub PushLayer: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, layerParameters: *const D2D1_LAYER_PARAMETERS, layer: *mut ID2D1Layer), pub PopLayer: unsafe extern "system" fn(This: *mut ID2D1RenderTarget), pub Flush: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, tag1: *mut D2D1_TAG, tag2: *mut D2D1_TAG) -> HRESULT, pub SaveDrawingState: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, drawingStateBlock: *mut ID2D1DrawingStateBlock), pub RestoreDrawingState: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, drawingStateBlock: *mut ID2D1DrawingStateBlock), pub PushAxisAlignedClip: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, clipRect: *const D2D1_RECT_F, antialiasMode: D2D1_ANTIALIAS_MODE), pub PopAxisAlignedClip: unsafe extern "system" fn(This: *mut ID2D1RenderTarget), pub Clear: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, clearColor: *const D2D1_COLOR_F), pub BeginDraw: unsafe extern "system" fn(This: *mut ID2D1RenderTarget), pub EndDraw: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, tag1: *mut D2D1_TAG, tag2: *mut D2D1_TAG) -> HRESULT, pub GetPixelFormat: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, ret: *mut D2D1_PIXEL_FORMAT) -> *mut D2D1_PIXEL_FORMAT, pub SetDpi: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, dpiX: FLOAT, dpiY: FLOAT), pub GetDpi: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, dpiX: *mut FLOAT, dpiY: *mut FLOAT), pub GetSize: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, ret: *mut D2D1_SIZE_F) -> *mut D2D1_SIZE_F, pub GetPixelSize: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, ret: *mut D2D1_SIZE_U) -> *mut D2D1_SIZE_U, pub GetMaximumBitmapSize: unsafe extern "system" fn(This: *mut ID2D1RenderTarget) -> UINT32, pub IsSupported: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, renderTargetProperties: *const D2D1_RENDER_TARGET_PROPERTIES) -> BOOL,
}

Fields§

§parent: ID2D1ResourceVtbl§CreateBitmap: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, size: D2D1_SIZE_U, srcData: *const c_void, pitch: UINT32, bitmapProperties: *const D2D1_BITMAP_PROPERTIES, bitmap: *mut *mut ID2D1Bitmap) -> HRESULT§CreateBitmapFromWicBitmap: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, wicBitmapSource: *mut IWICBitmapSource, bitmapProperties: *const D2D1_BITMAP_PROPERTIES, bitmap: *mut *mut ID2D1Bitmap) -> HRESULT§CreateSharedBitmap: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, riid: REFIID, data: *const c_void, bitmapProperties: *const D2D1_BITMAP_PROPERTIES, bitmap: *mut *mut ID2D1Bitmap) -> HRESULT§CreateBitmapBrush: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, bitmap: *mut ID2D1Bitmap, bitmapBrushProperties: *const D2D1_BITMAP_BRUSH_PROPERTIES, brushProperties: *const D2D1_BRUSH_PROPERTIES, bitmapBrush: *mut *mut ID2D1BitmapBrush) -> HRESULT§CreateSolidColorBrush: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, color: *const D2D1_COLOR_F, brushProperties: *const D2D1_BRUSH_PROPERTIES, solidColorBrush: *mut *mut ID2D1SolidColorBrush) -> HRESULT§CreateGradientStopCollection: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, gradientStops: *const D2D1_GRADIENT_STOP, gradientStopsCount: UINT32, colorInterpolationGamma: D2D1_GAMMA, extendMode: D2D1_EXTEND_MODE, gradientStopCollection: *mut *mut ID2D1GradientStopCollection) -> HRESULT§CreateLinearGradientBrush: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, linearGradientBrushProperties: *const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES, brushProperties: *const D2D1_BRUSH_PROPERTIES, gradientStopCollection: *mut ID2D1GradientStopCollection, linearGradientBrush: *mut *mut ID2D1LinearGradientBrush) -> HRESULT§CreateRadialGradientBrush: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, radialGradientBrushProperties: *const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES, brushProperties: *const D2D1_BRUSH_PROPERTIES, gradientStopCollection: *mut ID2D1GradientStopCollection, radialGradientBrush: *mut *mut ID2D1RadialGradientBrush) -> HRESULT§CreateCompatibleRenderTarget: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, desiredSize: *const D2D1_SIZE_F, desiredPixelSize: *const D2D1_SIZE_U, desiredFormat: *const D2D1_PIXEL_FORMAT, options: D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS, bitmapRenderTarget: *mut *mut ID2D1BitmapRenderTarget) -> HRESULT§CreateLayer: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, size: *const D2D1_SIZE_F, layer: *mut *mut ID2D1Layer) -> HRESULT§CreateMesh: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, mesh: *mut *mut ID2D1Mesh) -> HRESULT§DrawLine: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, point0: D2D1_POINT_2F, point1: D2D1_POINT_2F, brush: *mut ID2D1Brush, strokeWidth: FLOAT, strokeStype: *mut ID2D1StrokeStyle)§DrawRectangle: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, rect: *const D2D1_RECT_F, brush: *mut ID2D1Brush, strokeWidth: FLOAT, strokeStyle: *mut ID2D1StrokeStyle)§FillRectangle: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, rect: *const D2D1_RECT_F, brush: *mut ID2D1Brush)§DrawRoundedRectangle: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, roundedRect: *const D2D1_ROUNDED_RECT, brush: *mut ID2D1Brush, strokeWidth: FLOAT, strokeStyle: *mut ID2D1StrokeStyle)§FillRoundedRectangle: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, roundedRect: *const D2D1_ROUNDED_RECT, brush: *mut ID2D1Brush)§DrawEllipse: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, ellipse: *const D2D1_ELLIPSE, brush: *mut ID2D1Brush, strokeWidth: FLOAT, strokeStyle: *mut ID2D1StrokeStyle)§FillEllipse: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, ellipse: *const D2D1_ELLIPSE, brush: *mut ID2D1Brush)§DrawGeometry: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, geometry: *mut ID2D1Geometry, brush: *mut ID2D1Brush, strokeWidth: FLOAT, strokeStyle: *mut ID2D1StrokeStyle)§FillGeometry: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, geometry: *mut ID2D1Geometry, brush: *mut ID2D1Brush, opacityBrush: *mut ID2D1Brush)§FillMesh: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, mesh: *mut ID2D1Mesh, brush: *const ID2D1Brush)§FillOpacityMask: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, opacityMask: *mut ID2D1Bitmap, brush: *mut ID2D1Brush, content: D2D1_OPACITY_MASK_CONTENT, destinationRectangle: *const D2D1_RECT_F, sourceRectangle: *const D2D1_RECT_F)§DrawBitmap: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, bitmap: *mut ID2D1Bitmap, destinationRectangle: *const D2D1_RECT_F, opacity: FLOAT, interpolationMode: D2D1_BITMAP_INTERPOLATION_MODE, sourceRectangle: *const D2D1_RECT_F)§DrawText: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, string: *const WCHAR, stringLength: UINT32, textFormat: *mut IDWriteTextFormat, layoutRect: *const D2D1_RECT_F, defaultForegroundBrush: *mut ID2D1Brush, options: D2D1_DRAW_TEXT_OPTIONS, measuringMode: DWRITE_MEASURING_MODE)§DrawTextLayout: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, origin: D2D1_POINT_2F, textLayout: *mut IDWriteTextLayout, defaultForegroundBrush: *mut ID2D1Brush, options: D2D1_DRAW_TEXT_OPTIONS)§DrawGlyphRun: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, baselineOrigin: D2D1_POINT_2F, glyphRun: *const DWRITE_GLYPH_RUN, foregroundBrush: *mut ID2D1Brush, measuringMode: DWRITE_MEASURING_MODE)§SetTransform: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, transform: *const D2D1_MATRIX_3X2_F)§GetTransform: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, transform: *mut D2D1_MATRIX_3X2_F)§SetAntialiasMode: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, antialiasMode: D2D1_ANTIALIAS_MODE)§GetAntialiasMode: unsafe extern "system" fn(This: *mut ID2D1RenderTarget) -> D2D1_ANTIALIAS_MODE§SetTextAntialiasMode: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, textAntialiasMode: D2D1_TEXT_ANTIALIAS_MODE)§GetTextAntialiasMode: unsafe extern "system" fn(This: *mut ID2D1RenderTarget) -> D2D1_TEXT_ANTIALIAS_MODE§SetTextRenderingParams: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, textRenderingParams: *mut IDWriteRenderingParams)§GetTextRenderingParams: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, textRenderingParams: *mut *mut IDWriteRenderingParams)§SetTags: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, tag1: D2D1_TAG, tag2: D2D1_TAG)§GetTags: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, tag1: *mut D2D1_TAG, tag2: *mut D2D1_TAG)§PushLayer: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, layerParameters: *const D2D1_LAYER_PARAMETERS, layer: *mut ID2D1Layer)§PopLayer: unsafe extern "system" fn(This: *mut ID2D1RenderTarget)§Flush: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, tag1: *mut D2D1_TAG, tag2: *mut D2D1_TAG) -> HRESULT§SaveDrawingState: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, drawingStateBlock: *mut ID2D1DrawingStateBlock)§RestoreDrawingState: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, drawingStateBlock: *mut ID2D1DrawingStateBlock)§PushAxisAlignedClip: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, clipRect: *const D2D1_RECT_F, antialiasMode: D2D1_ANTIALIAS_MODE)§PopAxisAlignedClip: unsafe extern "system" fn(This: *mut ID2D1RenderTarget)§Clear: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, clearColor: *const D2D1_COLOR_F)§BeginDraw: unsafe extern "system" fn(This: *mut ID2D1RenderTarget)§EndDraw: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, tag1: *mut D2D1_TAG, tag2: *mut D2D1_TAG) -> HRESULT§GetPixelFormat: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, ret: *mut D2D1_PIXEL_FORMAT) -> *mut D2D1_PIXEL_FORMAT§SetDpi: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, dpiX: FLOAT, dpiY: FLOAT)§GetDpi: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, dpiX: *mut FLOAT, dpiY: *mut FLOAT)§GetSize: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, ret: *mut D2D1_SIZE_F) -> *mut D2D1_SIZE_F§GetPixelSize: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, ret: *mut D2D1_SIZE_U) -> *mut D2D1_SIZE_U§GetMaximumBitmapSize: unsafe extern "system" fn(This: *mut ID2D1RenderTarget) -> UINT32§IsSupported: unsafe extern "system" fn(This: *mut ID2D1RenderTarget, renderTargetProperties: *const D2D1_RENDER_TARGET_PROPERTIES) -> BOOL

Auto Trait Implementations§

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.