Struct x11_dl::xft::Xft

source ·
pub struct Xft {
Show 77 fields pub XftCharExists: unsafe extern "C" fn(_: *mut Display, _: *mut XftFont, _: c_uint) -> c_int, pub XftCharFontSpecRender: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_ulong, _: c_ulong, _: c_int, _: c_int, _: *const XftCharFontSpec, _: c_int), pub XftCharIndex: unsafe extern "C" fn(_: *mut Display, _: *mut XftFont, _: c_uint) -> c_uint, pub XftCharSpecRender: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_ulong, _: *mut XftFont, _: c_ulong, _: c_int, _: c_int, _: *const XftCharSpec, _: c_int), pub XftColorAllocName: unsafe extern "C" fn(_: *mut Display, _: *const Visual, _: c_ulong, _: *const c_char, _: *mut XftColor) -> c_int, pub XftColorAllocValue: unsafe extern "C" fn(_: *mut Display, _: *mut Visual, _: c_ulong, _: *const XRenderColor, _: *mut XftColor) -> c_int, pub XftColorFree: unsafe extern "C" fn(_: *mut Display, _: *mut Visual, _: c_ulong, _: *mut XftColor), pub XftDefaultHasRender: unsafe extern "C" fn(_: *mut Display) -> c_int, pub XftDefaultSet: unsafe extern "C" fn(_: *mut Display, _: *mut FcPattern) -> c_int, pub XftDefaultSubstitute: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut FcPattern), pub XftDrawChange: unsafe extern "C" fn(_: *mut XftDraw, _: c_ulong), pub XftDrawCharFontSpec: unsafe extern "C" fn(_: *mut XftDraw, _: *const XftColor, _: *const XftCharFontSpec, _: c_int), pub XftDrawCharSpec: unsafe extern "C" fn(_: *mut XftDraw, _: *const XftColor, _: *mut XftFont, _: *const XftCharSpec, _: c_int), pub XftDrawColormap: unsafe extern "C" fn(_: *mut XftDraw) -> c_ulong, pub XftDrawCreate: unsafe extern "C" fn(_: *mut Display, _: c_ulong, _: *mut Visual, _: c_ulong) -> *mut XftDraw, pub XftDrawCreateAlpha: unsafe extern "C" fn(_: *mut Display, _: c_ulong, _: c_int) -> *mut XftDraw, pub XftDrawCreateBitmap: unsafe extern "C" fn(_: *mut Display, _: c_ulong) -> *mut XftDraw, pub XftDrawDestroy: unsafe extern "C" fn(_: *mut XftDraw), pub XftDrawDisplay: unsafe extern "C" fn(_: *mut XftDraw) -> *mut Display, pub XftDrawDrawable: unsafe extern "C" fn(_: *mut XftDraw) -> c_ulong, pub XftDrawGlyphFontSpec: unsafe extern "C" fn(_: *mut XftDraw, _: *const XftColor, _: *const XftGlyphFontSpec, _: c_int), pub XftDrawGlyphs: unsafe extern "C" fn(_: *mut XftDraw, _: *const XftColor, _: *mut XftFont, _: c_int, _: c_int, _: *const c_uint, _: c_int), pub XftDrawGlyphSpec: unsafe extern "C" fn(_: *mut XftDraw, _: *const XftColor, _: *mut XftFont, _: *const XftGlyphSpec, _: c_int), pub XftDrawPicture: unsafe extern "C" fn(_: *mut XftDraw) -> c_ulong, pub XftDrawRect: unsafe extern "C" fn(_: *mut XftDraw, _: *const XftColor, _: c_int, _: c_int, _: c_uint, _: c_uint), pub XftDrawSetClip: unsafe extern "C" fn(_: *mut XftDraw, _: Region) -> c_int, pub XftDrawSetClipRectangles: unsafe extern "C" fn(_: *mut XftDraw, _: c_int, _: c_int, _: *const XRectangle, _: c_int) -> c_int, pub XftDrawSetSubwindowMode: unsafe extern "C" fn(_: *mut XftDraw, _: c_int), pub XftDrawSrcPicture: unsafe extern "C" fn(_: *mut XftDraw, _: *const XftColor) -> c_ulong, pub XftDrawString16: unsafe extern "C" fn(_: *mut XftDraw, _: *const XftColor, _: *mut XftFont, _: c_int, _: c_int, _: *const c_ushort, _: c_int), pub XftDrawString32: unsafe extern "C" fn(_: *mut XftDraw, _: *const XftColor, _: *mut XftFont, _: c_int, _: c_int, _: *const c_uint, _: c_int), pub XftDrawString8: unsafe extern "C" fn(_: *mut XftDraw, _: *const XftColor, _: *mut XftFont, _: c_int, _: c_int, _: *const c_uchar, _: c_int), pub XftDrawStringUtf16: unsafe extern "C" fn(_: *mut XftDraw, _: *const XftColor, _: *mut XftFont, _: c_int, _: c_int, _: *const c_uchar, _: FcEndian, _: c_int), pub XftDrawStringUtf8: unsafe extern "C" fn(_: *mut XftDraw, _: *const XftColor, _: *mut XftFont, _: c_int, _: c_int, _: *const c_uchar, _: c_int), pub XftDrawVisual: unsafe extern "C" fn(_: *mut XftDraw) -> *mut Visual, pub XftFontCheckGlyph: unsafe extern "C" fn(_: *mut Display, _: *mut XftFont, _: c_int, _: c_uint, _: *mut c_uint, _: *mut c_int) -> c_int, pub XftFontClose: unsafe extern "C" fn(_: *mut Display, _: *mut XftFont), pub XftFontCopy: unsafe extern "C" fn(_: *mut Display, _: *mut XftFont) -> *mut XftFont, pub XftFontInfoCreate: unsafe extern "C" fn(_: *mut Display, _: *const FcPattern) -> *mut XftFontInfo, pub XftFontInfoDestroy: unsafe extern "C" fn(_: *mut Display, _: *mut XftFontInfo), pub XftFontInfoEqual: unsafe extern "C" fn(_: *const XftFontInfo, _: *const XftFontInfo) -> c_int, pub XftFontInfoHash: unsafe extern "C" fn(_: *const XftFontInfo) -> c_uint, pub XftFontLoadGlyphs: unsafe extern "C" fn(_: *mut Display, _: *mut XftFont, _: c_int, _: *const c_uint, _: c_int), pub XftFontMatch: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *const FcPattern, _: *mut FcResult) -> *mut FcPattern, pub XftFontOpenInfo: unsafe extern "C" fn(_: *mut Display, _: *mut FcPattern, _: *mut XftFontInfo) -> *mut XftFont, pub XftFontOpenName: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *const c_char) -> *mut XftFont, pub XftFontOpenPattern: unsafe extern "C" fn(_: *mut Display, _: *mut FcPattern) -> *mut XftFont, pub XftFontOpenXlfd: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *const c_char) -> *mut XftFont, pub XftFontUnloadGlyphs: unsafe extern "C" fn(_: *mut Display, _: *mut XftFont, _: *const c_uint, _: c_int), pub XftGetVersion: unsafe extern "C" fn() -> c_int, pub XftGlyphExtents: unsafe extern "C" fn(_: *mut Display, _: *mut XftFont, _: *const c_uint, _: c_int, _: *mut XGlyphInfo), pub XftGlyphFontSpecRender: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_ulong, _: c_ulong, _: c_int, _: c_int, _: *const XftGlyphFontSpec, _: c_int), pub XftGlyphRender: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_ulong, _: *mut XftFont, _: c_ulong, _: c_int, _: c_int, _: c_int, _: c_int, _: *const c_uint, _: c_int), pub XftGlyphSpecRender: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_ulong, _: *mut XftFont, _: c_ulong, _: c_int, _: c_int, _: *const XftGlyphSpec, _: c_int), pub XftInit: unsafe extern "C" fn(_: *const c_char) -> c_int, pub XftInitFtLibrary: unsafe extern "C" fn() -> c_int, pub XftLockFace: unsafe extern "C" fn(_: *mut XftFont) -> *mut FT_FaceRec, pub XftNameParse: unsafe extern "C" fn(_: *const c_char) -> *mut FcPattern, pub XftNameUnparse: unsafe extern "C" fn(_: *mut FcPattern, _: *mut c_char, _: c_int) -> c_int, pub XftTextExtents16: unsafe extern "C" fn(_: *mut Display, _: *mut XftFont, _: *const c_ushort, _: c_int, _: *mut XGlyphInfo), pub XftTextExtents32: unsafe extern "C" fn(_: *mut Display, _: *mut XftFont, _: *const c_uint, _: c_int, _: *mut XGlyphInfo), pub XftTextExtents8: unsafe extern "C" fn(_: *mut Display, _: *mut XftFont, _: *const c_uchar, _: c_int, _: *mut XGlyphInfo), pub XftTextExtentsUtf16: unsafe extern "C" fn(_: *mut Display, _: *mut XftFont, _: *const c_uchar, _: FcEndian, _: c_int, _: *mut XGlyphInfo), pub XftTextExtentsUtf8: unsafe extern "C" fn(_: *mut Display, _: *mut XftFont, _: *const c_uchar, _: c_int, _: *mut XGlyphInfo), pub XftTextRender16: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_ulong, _: *mut XftFont, _: c_ulong, _: c_int, _: c_int, _: c_int, _: c_int, _: *const c_ushort, _: c_int), pub XftTextRender16BE: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_ulong, _: *mut XftFont, _: c_ulong, _: c_int, _: c_int, _: c_int, _: c_int, _: *const c_uchar, _: c_int), pub XftTextRender16LE: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_ulong, _: *mut XftFont, _: c_ulong, _: c_int, _: c_int, _: c_int, _: c_int, _: *const c_uchar, _: c_int), pub XftTextRender32: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_ulong, _: *mut XftFont, _: c_ulong, _: c_int, _: c_int, _: c_int, _: c_int, _: *const c_uint, _: c_int), pub XftTextRender32BE: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_ulong, _: *mut XftFont, _: c_ulong, _: c_int, _: c_int, _: c_int, _: c_int, _: *const c_uchar, _: c_int), pub XftTextRender32LE: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_ulong, _: *mut XftFont, _: c_ulong, _: c_int, _: c_int, _: c_int, _: c_int, _: *const c_uchar, _: c_int), pub XftTextRender8: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_ulong, _: *mut XftFont, _: c_ulong, _: c_int, _: c_int, _: c_int, _: c_int, _: *const c_uchar, _: c_int), pub XftTextRenderUtf16: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_ulong, _: *mut XftFont, _: c_ulong, _: c_int, _: c_int, _: c_int, _: c_int, _: *const c_uchar, _: FcEndian, _: c_int), pub XftTextRenderUtf8: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_ulong, _: *mut XftFont, _: c_ulong, _: c_int, _: c_int, _: c_int, _: c_int, _: *const c_uchar, _: c_int), pub XftUnlockFace: unsafe extern "C" fn(_: *mut XftFont), pub XftXlfdParse: unsafe extern "C" fn(_: *const c_char, _: c_int, _: c_int) -> *mut FcPattern, pub XftFontOpen: unsafe extern "C" fn(_: *mut Display, _: c_int, ...) -> *mut XftFont, pub XftListFonts: unsafe extern "C" fn(_: *mut Display, _: c_int, ...) -> *mut XftFontSet, /* private fields */
}

Fields§

§XftCharExists: unsafe extern "C" fn(_: *mut Display, _: *mut XftFont, _: c_uint) -> c_int§XftCharFontSpecRender: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_ulong, _: c_ulong, _: c_int, _: c_int, _: *const XftCharFontSpec, _: c_int)§XftCharIndex: unsafe extern "C" fn(_: *mut Display, _: *mut XftFont, _: c_uint) -> c_uint§XftCharSpecRender: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_ulong, _: *mut XftFont, _: c_ulong, _: c_int, _: c_int, _: *const XftCharSpec, _: c_int)§XftColorAllocName: unsafe extern "C" fn(_: *mut Display, _: *const Visual, _: c_ulong, _: *const c_char, _: *mut XftColor) -> c_int§XftColorAllocValue: unsafe extern "C" fn(_: *mut Display, _: *mut Visual, _: c_ulong, _: *const XRenderColor, _: *mut XftColor) -> c_int§XftColorFree: unsafe extern "C" fn(_: *mut Display, _: *mut Visual, _: c_ulong, _: *mut XftColor)§XftDefaultHasRender: unsafe extern "C" fn(_: *mut Display) -> c_int§XftDefaultSet: unsafe extern "C" fn(_: *mut Display, _: *mut FcPattern) -> c_int§XftDefaultSubstitute: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut FcPattern)§XftDrawChange: unsafe extern "C" fn(_: *mut XftDraw, _: c_ulong)§XftDrawCharFontSpec: unsafe extern "C" fn(_: *mut XftDraw, _: *const XftColor, _: *const XftCharFontSpec, _: c_int)§XftDrawCharSpec: unsafe extern "C" fn(_: *mut XftDraw, _: *const XftColor, _: *mut XftFont, _: *const XftCharSpec, _: c_int)§XftDrawColormap: unsafe extern "C" fn(_: *mut XftDraw) -> c_ulong§XftDrawCreate: unsafe extern "C" fn(_: *mut Display, _: c_ulong, _: *mut Visual, _: c_ulong) -> *mut XftDraw§XftDrawCreateAlpha: unsafe extern "C" fn(_: *mut Display, _: c_ulong, _: c_int) -> *mut XftDraw§XftDrawCreateBitmap: unsafe extern "C" fn(_: *mut Display, _: c_ulong) -> *mut XftDraw§XftDrawDestroy: unsafe extern "C" fn(_: *mut XftDraw)§XftDrawDisplay: unsafe extern "C" fn(_: *mut XftDraw) -> *mut Display§XftDrawDrawable: unsafe extern "C" fn(_: *mut XftDraw) -> c_ulong§XftDrawGlyphFontSpec: unsafe extern "C" fn(_: *mut XftDraw, _: *const XftColor, _: *const XftGlyphFontSpec, _: c_int)§XftDrawGlyphs: unsafe extern "C" fn(_: *mut XftDraw, _: *const XftColor, _: *mut XftFont, _: c_int, _: c_int, _: *const c_uint, _: c_int)§XftDrawGlyphSpec: unsafe extern "C" fn(_: *mut XftDraw, _: *const XftColor, _: *mut XftFont, _: *const XftGlyphSpec, _: c_int)§XftDrawPicture: unsafe extern "C" fn(_: *mut XftDraw) -> c_ulong§XftDrawRect: unsafe extern "C" fn(_: *mut XftDraw, _: *const XftColor, _: c_int, _: c_int, _: c_uint, _: c_uint)§XftDrawSetClip: unsafe extern "C" fn(_: *mut XftDraw, _: Region) -> c_int§XftDrawSetClipRectangles: unsafe extern "C" fn(_: *mut XftDraw, _: c_int, _: c_int, _: *const XRectangle, _: c_int) -> c_int§XftDrawSetSubwindowMode: unsafe extern "C" fn(_: *mut XftDraw, _: c_int)§XftDrawSrcPicture: unsafe extern "C" fn(_: *mut XftDraw, _: *const XftColor) -> c_ulong§XftDrawString16: unsafe extern "C" fn(_: *mut XftDraw, _: *const XftColor, _: *mut XftFont, _: c_int, _: c_int, _: *const c_ushort, _: c_int)§XftDrawString32: unsafe extern "C" fn(_: *mut XftDraw, _: *const XftColor, _: *mut XftFont, _: c_int, _: c_int, _: *const c_uint, _: c_int)§XftDrawString8: unsafe extern "C" fn(_: *mut XftDraw, _: *const XftColor, _: *mut XftFont, _: c_int, _: c_int, _: *const c_uchar, _: c_int)§XftDrawStringUtf16: unsafe extern "C" fn(_: *mut XftDraw, _: *const XftColor, _: *mut XftFont, _: c_int, _: c_int, _: *const c_uchar, _: FcEndian, _: c_int)§XftDrawStringUtf8: unsafe extern "C" fn(_: *mut XftDraw, _: *const XftColor, _: *mut XftFont, _: c_int, _: c_int, _: *const c_uchar, _: c_int)§XftDrawVisual: unsafe extern "C" fn(_: *mut XftDraw) -> *mut Visual§XftFontCheckGlyph: unsafe extern "C" fn(_: *mut Display, _: *mut XftFont, _: c_int, _: c_uint, _: *mut c_uint, _: *mut c_int) -> c_int§XftFontClose: unsafe extern "C" fn(_: *mut Display, _: *mut XftFont)§XftFontCopy: unsafe extern "C" fn(_: *mut Display, _: *mut XftFont) -> *mut XftFont§XftFontInfoCreate: unsafe extern "C" fn(_: *mut Display, _: *const FcPattern) -> *mut XftFontInfo§XftFontInfoDestroy: unsafe extern "C" fn(_: *mut Display, _: *mut XftFontInfo)§XftFontInfoEqual: unsafe extern "C" fn(_: *const XftFontInfo, _: *const XftFontInfo) -> c_int§XftFontInfoHash: unsafe extern "C" fn(_: *const XftFontInfo) -> c_uint§XftFontLoadGlyphs: unsafe extern "C" fn(_: *mut Display, _: *mut XftFont, _: c_int, _: *const c_uint, _: c_int)§XftFontMatch: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *const FcPattern, _: *mut FcResult) -> *mut FcPattern§XftFontOpenInfo: unsafe extern "C" fn(_: *mut Display, _: *mut FcPattern, _: *mut XftFontInfo) -> *mut XftFont§XftFontOpenName: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *const c_char) -> *mut XftFont§XftFontOpenPattern: unsafe extern "C" fn(_: *mut Display, _: *mut FcPattern) -> *mut XftFont§XftFontOpenXlfd: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *const c_char) -> *mut XftFont§XftFontUnloadGlyphs: unsafe extern "C" fn(_: *mut Display, _: *mut XftFont, _: *const c_uint, _: c_int)§XftGetVersion: unsafe extern "C" fn() -> c_int§XftGlyphExtents: unsafe extern "C" fn(_: *mut Display, _: *mut XftFont, _: *const c_uint, _: c_int, _: *mut XGlyphInfo)§XftGlyphFontSpecRender: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_ulong, _: c_ulong, _: c_int, _: c_int, _: *const XftGlyphFontSpec, _: c_int)§XftGlyphRender: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_ulong, _: *mut XftFont, _: c_ulong, _: c_int, _: c_int, _: c_int, _: c_int, _: *const c_uint, _: c_int)§XftGlyphSpecRender: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_ulong, _: *mut XftFont, _: c_ulong, _: c_int, _: c_int, _: *const XftGlyphSpec, _: c_int)§XftInit: unsafe extern "C" fn(_: *const c_char) -> c_int§XftInitFtLibrary: unsafe extern "C" fn() -> c_int§XftLockFace: unsafe extern "C" fn(_: *mut XftFont) -> *mut FT_FaceRec§XftNameParse: unsafe extern "C" fn(_: *const c_char) -> *mut FcPattern§XftNameUnparse: unsafe extern "C" fn(_: *mut FcPattern, _: *mut c_char, _: c_int) -> c_int§XftTextExtents16: unsafe extern "C" fn(_: *mut Display, _: *mut XftFont, _: *const c_ushort, _: c_int, _: *mut XGlyphInfo)§XftTextExtents32: unsafe extern "C" fn(_: *mut Display, _: *mut XftFont, _: *const c_uint, _: c_int, _: *mut XGlyphInfo)§XftTextExtents8: unsafe extern "C" fn(_: *mut Display, _: *mut XftFont, _: *const c_uchar, _: c_int, _: *mut XGlyphInfo)§XftTextExtentsUtf16: unsafe extern "C" fn(_: *mut Display, _: *mut XftFont, _: *const c_uchar, _: FcEndian, _: c_int, _: *mut XGlyphInfo)§XftTextExtentsUtf8: unsafe extern "C" fn(_: *mut Display, _: *mut XftFont, _: *const c_uchar, _: c_int, _: *mut XGlyphInfo)§XftTextRender16: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_ulong, _: *mut XftFont, _: c_ulong, _: c_int, _: c_int, _: c_int, _: c_int, _: *const c_ushort, _: c_int)§XftTextRender16BE: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_ulong, _: *mut XftFont, _: c_ulong, _: c_int, _: c_int, _: c_int, _: c_int, _: *const c_uchar, _: c_int)§XftTextRender16LE: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_ulong, _: *mut XftFont, _: c_ulong, _: c_int, _: c_int, _: c_int, _: c_int, _: *const c_uchar, _: c_int)§XftTextRender32: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_ulong, _: *mut XftFont, _: c_ulong, _: c_int, _: c_int, _: c_int, _: c_int, _: *const c_uint, _: c_int)§XftTextRender32BE: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_ulong, _: *mut XftFont, _: c_ulong, _: c_int, _: c_int, _: c_int, _: c_int, _: *const c_uchar, _: c_int)§XftTextRender32LE: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_ulong, _: *mut XftFont, _: c_ulong, _: c_int, _: c_int, _: c_int, _: c_int, _: *const c_uchar, _: c_int)§XftTextRender8: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_ulong, _: *mut XftFont, _: c_ulong, _: c_int, _: c_int, _: c_int, _: c_int, _: *const c_uchar, _: c_int)§XftTextRenderUtf16: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_ulong, _: *mut XftFont, _: c_ulong, _: c_int, _: c_int, _: c_int, _: c_int, _: *const c_uchar, _: FcEndian, _: c_int)§XftTextRenderUtf8: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_ulong, _: *mut XftFont, _: c_ulong, _: c_int, _: c_int, _: c_int, _: c_int, _: *const c_uchar, _: c_int)§XftUnlockFace: unsafe extern "C" fn(_: *mut XftFont)§XftXlfdParse: unsafe extern "C" fn(_: *const c_char, _: c_int, _: c_int) -> *mut FcPattern§XftFontOpen: unsafe extern "C" fn(_: *mut Display, _: c_int, ...) -> *mut XftFont§XftListFonts: unsafe extern "C" fn(_: *mut Display, _: c_int, ...) -> *mut XftFontSet

Implementations§

Trait Implementations§

source§

impl Send for Xft

source§

impl Sync for Xft

Auto Trait Implementations§

§

impl RefUnwindSafe for Xft

§

impl Unpin for Xft

§

impl UnwindSafe for Xft

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

§

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.