Skip to main content

Type

Struct Type 

Source
pub struct Type(/* private fields */);

Implementations§

Source§

impl Type

Source

pub fn retained(&self) -> R<Self>

Source§

impl Type

Source

pub fn cls() -> &'static Class<Self>

Source

pub fn cls_ptr() -> *const c_void

Source

pub fn alloc() -> A<Self>

Source

pub fn with_id_ar(identifier: &String) -> Option<Rar<Self>>

Source

pub fn with_id(identifier: &String) -> Option<R<Self>>

Source

pub fn with_file_ext_ar(file_name_extension: &String) -> Option<Rar<Self>>

Source

pub fn with_file_ext(file_name_extension: &String) -> Option<R<Self>>

Source

pub fn id_ar(&self) -> Rar<String>

Source

pub fn id(&self) -> R<String>

Source

pub fn preferred_file_ext_ar(&self) -> Option<Rar<String>>

Source

pub fn preferred_file_ext(&self) -> Option<R<String>>

Source

pub fn preferred_mime_type_ar(&self) -> Option<Rar<String>>

Source

pub fn preferred_mime_type(&self) -> Option<R<String>>

Source

pub fn localized_desc_ar(&self) -> Option<Rar<String>>

Source

pub fn localized_desc(&self) -> Option<R<String>>

Source

pub fn version_ar(&self) -> Option<Rar<String>>

Source

pub fn version(&self) -> Option<R<String>>

Source

pub fn reference_url_ar(&self) -> Option<Rar<Url>>

Source

pub fn reference_url(&self) -> Option<R<Url>>

Source

pub fn is_dynamic(&self) -> bool

Source

pub fn is_declared(&self) -> bool

Source

pub fn is_public_type(&self) -> bool

Source§

impl Type

Conformance

Source

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

Source

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

Source

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

Source

pub fn supertypes_ar(&self) -> Rar<Set<Self>>

Source

pub fn supertypes(&self) -> R<Set<Self>>

Source§

impl Type

Abstract base types

Source

pub fn item() -> &'static Self

A generic base type for most things (files, directories.)

UTI: public.item

Source

pub fn content() -> &'static Self

A base type for anything containing user-viewable document content (documents, pasteboard data, and document packages.)

UTI: public.content

Source

pub fn composite_content() -> &'static Self

A base type for content formats supporting mixed embedded content (i.e., compound documents).

UTI: public.composite-content conforms to: public.content

Source

pub fn disk_image() -> &'static Self

A data item mountable as a volume

UTI: public.disk-image

Source§

impl Type

Concrete base types

Source

pub fn data() -> &'static Self

A base type for any sort of simple byte stream, including files and in-memory data.

UTI: public.data conforms to: public.item

Source

pub fn directory() -> &'static Self

A file system directory (includes packages \em and folders.)

UTI: public.directory conforms to: public.item

Source

pub fn resolvable() -> &'static Self

Symbolic link and alias file types conform to this type.

UTI: com.apple.resolvable

A symbolic link.

UTI: public.symlink conforms to: public.item, com.apple.resolvable

Source

pub fn executable() -> &'static Self

An executable item.

UTI: public.executable conforms to: public.item

Source

pub fn mount_point() -> &'static Self

A volume mount point (resolvable, resolves to the root directory of a volume.)

UTI: com.apple.mount-point conforms to: public.item, com.apple.resolvable

Source

pub fn alias_file() -> &'static Self

A fully-formed alias file.

UTI: com.apple.alias-file conforms to: public.data, com.apple.resolvable

Source§

impl Type

URL types

Source

pub fn url_bookmark_data() -> &'static Self

A URL bookmark.

UTI: com.apple.bookmark conforms to: public.data, com.apple.resolvable

Source

pub fn url() -> &'static Self

Any URL.

UTI: public.url conforms to: public.data

Source

pub fn file_url() -> &'static Self

A URL with the scheme \c “file:”.

UTI: public.file-url conforms to: public.url

Source§

impl Type

Text types

Source

pub fn text() -> &'static Self

The base type for all text-encoded data, including text with markup (HTML, RTF, etc.).

UTI: public.text conforms to: public.data, public.content

Source

pub fn plain_text() -> &'static Self

Text with no markup and an unspecified encoding.

UTI: public.plain-text conforms to: public.text

Source

pub fn utf8_plain_text() -> &'static Self

Plain text encoded as UTF-8.

UTI: public.utf8-plain-text conforms to: public.plain-text

Source

pub fn utf16_external_plain_text() -> &'static Self

Plain text encoded as UTF-16 with a BOM, or if a BOM is not present, using “external representation” byte order (big-endian).

UTI: public.utf16-external-plain-text conforms to: public.plain-text

Source

pub fn utf16_plain_text() -> &'static Self

Plain text encoded as UTF-16, in native byte order, with an optional BOM.

UTI: public.utf16-plain-text conforms to: public.plain-text

Source

pub fn delimited_text() -> &'static Self

Text containing delimited values.

UTI: public.delimited-values-text conforms to: public.text

Source

pub fn comma_separated_text() -> &'static Self

Text containing comma-separated values (.csv).

UTI: public.comma-separated-values-text conforms to: public.delimited-values-text

Source

pub fn tab_separated_text() -> &'static Self

Text containing tab-separated values.

UTI: public.tab-separated-values-text conforms to: public.delimited-values-text

Source

pub fn utf8_tab_separated_text() -> &'static Self

UTF-8 encoded text containing tab-separated values.

UTI: public.utf8-tab-separated-values-text conforms to: public.tab-separated-values-text, public.utf8-plain-text

Source

pub fn rtf() -> &'static Self

Rich Text Format data.

UTI: public.rtf conforms to: public.text

Source§

impl Type

Markup languages

Source

pub fn html() -> &'static Self

Any version of HTML.

UTI: public.html conforms to: public.text

Source

pub fn xml() -> &'static Self

Generic XML.

UTI: public.xml conforms to: public.text

Source

pub fn yaml() -> &'static Self

Yet Another Markup Language.

UTI: public.yaml conforms to: public.text

Source§

impl Type

Programming languages

Source

pub fn src_code() -> &'static Self

Abstract type for source code of any language.

UTI: public.source-code conforms to: public.plain-text

Source

pub fn asm_src() -> &'static Self

Assembly language source (.s)

UTI: public.assembly-source conforms to: public.source-code

Source

pub fn c_src() -> &'static Self

C source code (.c)

UTI: public.c-source conforms to: public.source-code

Source

pub fn obj_c_src() -> &'static Self

Objective-C source code (.m)

UTI: public.objective-c-source conforms to: public.source-code

Source

pub fn swift_src() -> &'static Self

Swift source code (.swift)

UTI: public.swift-source conforms to: public.source-code

Source

pub fn cpp_src() -> &'static Self

C++ source code (.cp, etc.)

UTI: public.c-plus-plus-source conforms to: public.source-code

Source

pub fn obj_cpp_src() -> &'static Self

Objective-C++ source code.

UTI: public.objective-c-plus-plus-source conforms to: public.source-code

Source

pub fn c_header() -> &'static Self

A C header.

UTI: public.c-header conforms to: public.source-code

Source

pub fn cpp_header() -> &'static Self

A C++ header.

UTI: public.c-plus-plus-header conforms to: public.source-code

Source§

impl Type

Scripting languages

Source

pub fn script() -> &'static Self

A base type for any scripting language source.

UTI: public.script conforms to: public.source-code

Source

pub fn apple_script() -> &'static Self

An AppleScript text-based script (.applescript).

UTI: com.apple.applescript.text conforms to: public.script

Source

pub fn osa_script() -> &'static Self

An Open Scripting Architecture binary script (.scpt).

UTI: com.apple.applescript.script conforms to: public.data, public.script

Source

pub fn osa_script_bundle() -> &'static Self

An Open Scripting Architecture script bundle (.scptd).

UTI: com.apple.applescript.script-bundle conforms to: com.apple.bundle, com.apple.package, public.script

Source

pub fn java_script() -> &'static Self

JavaScript source code

UTI: com.netscape.javascript-source conforms to: public.source-code, public.executable

Source

pub fn shell_script() -> &'static Self

The base type for shell scripts.

UTI: public.shell-script conforms to: public.script

Source

pub fn perl_script() -> &'static Self

A Perl script.

UTI: public.perl-script conforms to: public.shell-script

Source

pub fn python_script() -> &'static Self

A Python script.

UTI: public.python-script conforms to: public.shell-script

Source

pub fn ruby_script() -> &'static Self

A Ruby script.

UTI: public.ruby-script conforms to: public.shell-script

Source

pub fn php_script() -> &'static Self

A PHP script.

UTI: public.php-script conforms to: public.shell-script

Source

pub fn makefile() -> &'static Self

A makefile.

UTI: public.make-source conforms to: public.script

Source§

impl Type

Serialized data types

Source

pub fn json() -> &'static Self

JavaScript object notation (JSON) data

UTI: public.json conforms to: public.text JSON almost (but doesn’t quite) conforms to com.netscape.javascript-source.

Source

pub fn prop_list() -> &'static Self

A base type for property lists.

UTI: com.apple.property-list conforms to: public.data

Source

pub fn xml_prop_list() -> &'static Self

An XML property list.

UTI: com.apple.xml-property-list conforms to: public.xml, com.apple.property-list

Source

pub fn binary_prop_list() -> &'static Self

A binary property list.

UTI: com.apple.binary-property-list conforms to: com.apple.property-list

Source§

impl Type

Composite content types

Source

pub fn pdf() -> &'static Self

An Adobe PDF document.

UTI: com.adobe.pdf conforms to: public.data, public.composite-content

Source

pub fn rtfd() -> &'static Self

A Rich Text Format Directory document (RTF with content embedding in its on-disk format.)

UTI: com.apple.rtfd conforms to: com.apple.package, public.composite-content

Source

pub fn flat_rtfd() -> &'static Self

A flattened RTFD document (formatted for the pasteboard.)

UTI: com.apple.flat-rtfd conforms to: public.data, public.composite-content

Source

pub fn web_archive() -> &'static Self

The WebKit webarchive format.

UTI: com.apple.webarchive conforms to: public.data, public.composite-content

Source§

impl Type

Image content types

Source

pub fn image() -> &'static Self

A base type for abstract image data.

UTI: public.image conforms to: public.data, public.content

Source

pub fn jpeg() -> &'static Self

A JPEG image.

UTI: public.jpeg conforms to: public.image

Source

pub fn tiff() -> &'static Self

A TIFF image.

UTI: public.tiff conforms to: public.image

Source

pub fn gif() -> &'static Self

A GIF image.

UTI: com.compuserve.gif conforms to: public.image

Source

pub fn png() -> &'static Self

A PNG image.

UTI: public.png conforms to: public.image

Source

pub fn icns() -> &'static Self

Apple icon data

UTI: com.apple.icns conforms to: public.image

Source

pub fn bmp() -> &'static Self

A Windows bitmap.

UTI: com.microsoft.bmp conforms to: public.image

Source

pub fn ico() -> &'static Self

Windows icon data

UTI: com.microsoft.ico conforms to: public.image

Source

pub fn raw_image() -> &'static Self

A base type for raw image data (.raw).

UTI: public.camera-raw-image conforms to: public.image

Source

pub fn svg() -> &'static Self

A Scalable Vector Graphics image.

UTI: public.svg-image conforms to: public.image

Source

pub fn live_photo() -> &'static Self

A Live Photo.

UTI: com.apple.live-photo

Source

pub fn heif() -> &'static Self

A High Efficiency Image File Format image.

UTI: public.heif conforms to: public.heif-standard

Source

pub fn heic() -> &'static Self

A High Efficiency Image Coding image.

UTI: public.heic conforms to: public.heif-standard

Source

pub fn webp() -> &'static Self

The WebP image format.

UTI: org.webmproject.webp conforms to: public.image

Source§

impl Type

3D Content

Source

pub fn _3d_content() -> &'static Self

A base type for 3D content.

UTI: public.3d-content conforms to: public.content

Source

pub fn usd() -> &'static Self

Universal Scene Description content.

UTI: com.pixar.universal-scene-description conforms to: public.3d-content, public.data

Source

pub fn usdz() -> &'static Self

Universal Scene Description Package content.

UTI: com.pixar.universal-scene-description-mobile conforms to: public.3d-content, public.data

Source

pub fn reality_file() -> &'static Self

A Reality File.

UTI: com.apple.reality conforms to: public.data

Source

pub fn sk_scene() -> &'static Self

A SceneKit serialized scene.

UTI: com.apple.scenekit.scene conforms to: public.3d-content, public.data

Source

pub fn ar_reference_obj() -> &'static Self

An AR reference object.

UTI: com.apple.arobject conforms to: public.data

Source

pub fn av_content() -> &'static Self

Any audio and/or video content.

UTI: public.audiovisual-content conforms to: public.data, public.content

Source

pub fn movie() -> &'static Self

A media format which may contain both video and audio.

This type corresponds to what users would label a “movie”.

UTI: public.movie conforms to: public.audiovisual-content

Source

pub fn video() -> &'static Self

Pure video data with no audio data.

UTI: public.video conforms to: public.movie

Source

pub fn audio() -> &'static Self

Pure audio data with no video data.

UTI: public.audio conforms to: public.audiovisual-content

Source

pub fn quick_time_movie() -> &'static Self

A QuickTime movie.

UTI: com.apple.quicktime-movie conforms to: public.movie

Source

pub fn mpeg() -> &'static Self

An MPEG-1 or MPEG-2 movie.

UTI: public.mpeg conforms to: public.movie

Source

pub fn mpeg2video() -> &'static Self

An MPEG-2 video.

UTI: public.mpeg-2-video conforms to: public.video

Source

pub fn mpeg2ts() -> &'static Self

The MPEG-2 Transport Stream movie format.

UTI: public.mpeg-2-transport-stream conforms to: public.movie

Source

pub fn mp3() -> &'static Self

MP3 audio.

UTI: public.mp3 conforms to: public.audio

Source

pub fn mpeg4movie() -> &'static Self

MPEG-4 movie

UTI: public.mpeg-4 conforms to: public.movie

Source

pub fn mpeg4audio() -> &'static Self

An MPEG-4 audio layer file.

UTI: public.mpeg-4-audio conforms to: public.mpeg-4, public.audio

Source

pub fn apple_protected_mpeg4audio() -> &'static Self

The Apple protected MPEG4 format (.m4p, iTunes music store format.)

UTI: com.apple.protected-mpeg-4-audio conforms to: public.audio

Source

pub fn apple_protected_mpeg4video() -> &'static Self

An Apple protected MPEG-4 movie.

UTI: com.apple.protected-mpeg-4-video conforms to: com.apple.m4v-video

Source

pub fn avi() -> &'static Self

The AVI movie format.

UTI: public.avi conforms to: public.movie

Source

pub fn aiff() -> &'static Self

The AIFF audio format

UTI: public.aiff-audio conforms to: public.aifc-audio

Source

pub fn wav() -> &'static Self

The Microsoft waveform audio format (.wav).

UTI: com.microsoft.waveform-audio conforms to: public.audio

Source

pub fn midi() -> &'static Self

The MIDI audio format.

UTI: public.midi-audio conforms to: public.audio

Source

pub fn playlist() -> &'static Self

The base type for playlists.

UTI: public.playlist

Source

pub fn m3u_playlist() -> &'static Self

An M3U or M3U8 playlist

UTI: public.m3u-playlist conforms to: public.text, public.playlist

Source§

impl Type

Directory types

Source

pub fn folder() -> &'static Self

A user-browsable directory (i.e. not a package.)

UTI: public.folder conforms to: public.directory

Source

pub fn volume() -> &'static Self

The root folder of a volume or mount point.

UTI: public.volume conforms to: public.folder

Source

pub fn package() -> &'static Self

A packaged directory.

UTI: com.apple.package conforms to: public.directory

Source

pub fn bundle() -> &'static Self

A directory conforming to one of the \c CFBundle layouts.

UTI: com.apple.bundle conforms to: public.directory

Source

pub fn plugin_bundle() -> &'static Self

The base type for bundle-based plugins.

UTI: com.apple.plugin conforms to: com.apple.bundle, com.apple.package

Source

pub fn spotlight_importer() -> &'static Self

A Spotlight metadata importer bundle.

UTI: com.apple.metadata-importer conforms to: com.apple.plugin

Source

pub fn quick_look_generator() -> &'static Self

A QuickLook preview generator bundle.

UTI: com.apple.quicklook-generator conforms to: com.apple.plugin

Source

pub fn xpc_service() -> &'static Self

An XPC service bundle.

UTI: com.apple.xpc-service conforms to: com.apple.bundle, com.apple.package

Source

pub fn framework() -> &'static Self

A macOS or iOS framework bundle.

UTI: com.apple.framework conforms to: com.apple.bundle

Source

pub fn app() -> &'static Self

The base type for macOS and iOS applications.

UTI: com.apple.application conforms to: public.executable

Source

pub fn app_bundle() -> &'static Self

A bundled application.

UTI: com.apple.application-bundle conforms to: com.apple.application, com.apple.bundle, com.apple.package

Source

pub fn appex() -> &'static Self

An application extension (.appex).

UTI: com.apple.application-and-system-extension conforms to: com.apple.xpc-service

Source

pub fn unix_executable() -> &'static Self

A UNIX executable (flat file.)

UTI: public.unix-executable conforms to: public.data, public.executable

Source

pub fn exe() -> &'static Self

A Windows executable (.exe).

UTI: com.microsoft.windows-executable conforms to: public.data, public.executable

Source

pub fn sys_pref_pane() -> &'static Self

A System Preferences pane.

UTI: com.apple.systempreference.prefpane conforms to: com.apple.package, com.apple.bundle

Source§

impl Type

Archival and compression types

Source

pub fn archive() -> &'static Self

An archive of files and directories

UTI: public.archive

Source

pub fn gzip() -> &'static Self

A GNU zip archive.

UTI: org.gnu.gnu-zip-archive conforms to: public.data, public.archive

Source

pub fn bz2() -> &'static Self

A bzip2 archive.

UTI: public.bzip2-archive conforms to: public.data, public.archive

Source

pub fn zip() -> &'static Self

A zip archive.

UTI: public.zip-archive conforms to: com.pkware.zip-archive

Source

pub fn apple_archive() -> &'static Self

An Apple Archive.

UTI: com.apple.archive conforms to: public.data, public.archive

Source§

impl Type

Document types

Source

pub fn spreadsheet() -> &'static Self

A base type for spreadsheet documents.

UTI: public.spreadsheet conforms to: public.content

Source

pub fn presentation() -> &'static Self

A base type for presentation documents.

UTI: public.presentation conforms to: public.composite-content

Source

pub fn database() -> &'static Self

A database store.

UTI: public.database

Source§

impl Type

Messages, contacts, and calendar types

Source

pub fn message() -> &'static Self

A base type for messages (email, IM, etc.)

UTI: public.message

Source

pub fn contact() -> &'static Self

Contact information, e.g. for a person, group, organization

UTI: public.contact

Source

pub fn v_card() -> &'static Self

A vCard file.

UTI: public.vcard conforms to: public.text, public.contact

Source

pub fn todo_item() -> &'static Self

A to-do item.

UTI: public.to-do-item

Source

pub fn calendar_event() -> &'static Self

A calendar event.

UTI: public.calendar-event

Source

pub fn email_message() -> &'static Self

An e-mail message.

UTI: public.email-message conforms to: public.message

Source§

impl Type

Internet locations

Source

pub fn internet_location() -> &'static Self

A base type for Apple Internet location files.

UTI: com.apple.internet-location conforms to: public.data

Source

pub fn internet_shortcut() -> &'static Self

Microsoft Internet shortcut files (.url).

UTI: com.apple.internet-location conforms to: public.data

Source§

impl Type

Miscellaneous types

Source

pub fn font() -> &'static Self

A base type for fonts.

UTI: public.font

Source

pub fn bookmark() -> &'static Self

A bookmark.

UTI: public.bookmark

Source

pub fn pkcs12() -> &'static Self

PKCS#12 data.

UTI: com.rsa.pkcs-12 conforms to: public.data

Source

pub fn x509cert() -> &'static Self

An X.509 certificate.

UTI: public.x509-certificate conforms to: public.data

Source

pub fn epub() -> &'static Self

The EPUB format.

UTI: org.idpf.epub-container conforms to: public.data, public.composite-content

Source

pub fn log() -> &'static Self

A base type for console logs.

UTI: public.log

Source

pub fn ahap() -> &'static Self

An Apple Haptics Audio Pattern file.

UTI: com.apple.haptics.ahap

Methods from Deref<Target = Id>§

Source

pub unsafe fn value_for_key_throws_ar(&self, key: &String) -> Option<Rar<Self>>

Source

pub unsafe fn value_for_key_throws(&self, key: &String) -> Option<R<Self>>

Source

pub fn value_for_key<'ear>( &self, key: &String, ) -> ExResult<'ear, Option<R<Self>>>

Source

pub unsafe fn set_value_for_key_throws( &mut self, val: Option<&Self>, key: &String, )

Source

pub fn set_value_for_key<'ear>( &mut self, val: Option<&Self>, key: &String, ) -> ExResult<'ear>

Source

pub unsafe fn value_for_key_path_throws_ar( &self, key_path: &String, ) -> Option<Rar<Self>>

Source

pub unsafe fn value_for_key_path_throws( &self, key_path: &String, ) -> Option<R<Self>>

Source

pub fn value_for_key_path<'ear>( &self, key_path: &String, ) -> ExResult<'ear, Option<R<Self>>>

Source

pub unsafe fn set_value_for_key_path_throws( &mut self, val: Option<&Self>, key_path: &String, )

Source

pub fn set_value_for_key_path<'ear>( &mut self, val: Option<&Self>, key_path: &String, ) -> ExResult<'ear>

Source

pub fn as_type_ref(&self) -> &Type

Source

pub fn as_id_ref(&self) -> &Self

Source

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

Source

pub fn hash(&self) -> UInteger

Source

pub fn as_ptr(&self) -> *const Self

Trait Implementations§

Source§

impl AsRef<Id> for Type

Source§

fn as_ref(&self) -> &Id

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Debug for Type

Source§

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

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

impl Deref for Type

Source§

type Target = Id

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl DerefMut for Type

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl Obj for Type

Source§

unsafe fn retain(id: &Self) -> R<Self>

Source§

unsafe fn release(id: &mut Self)

Source§

fn desc_ar(&self) -> Rar<String>

Source§

fn desc(&self) -> R<String>

Source§

fn debug_desc_ar(&self) -> Rar<String>

Source§

fn debug_desc(&self) -> R<String>

Source§

fn responds_to_sel(&self, sel: &Sel) -> bool

Source§

fn class(&self) -> &Class<Self>

Source§

fn is_kind_of_class<T: Obj>(&self, cls: &Class<T>) -> bool

Source§

fn try_cast<T: Obj>(&self, cls: &Class<T>) -> Option<&T>

Source§

fn try_cast_mut<T: Obj>(&mut self, cls: &Class<T>) -> Option<&mut T>

Source§

fn is_member_of_class<T: Obj>(&self, cls: &Class<T>) -> bool

Source§

fn is_tagged_ptr(&self) -> bool

Source§

fn as_id_ref(&self) -> &Id

Source§

impl PartialEq for Type

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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 PartialEq<Retained<Type>> for Type

Source§

fn eq(&self, other: &R<Type>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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 Send for Type

Source§

impl StructuralPartialEq for Type

Auto Trait Implementations§

§

impl !Sync for Type

§

impl Freeze for Type

§

impl RefUnwindSafe for Type

§

impl Unpin for Type

§

impl UnsafeUnpin for Type

§

impl UnwindSafe for Type

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> Release for T
where T: Obj,

Source§

unsafe fn release(&mut self)

Source§

impl<T> Retain for T
where T: Obj,

Source§

fn retained(&self) -> Retained<T>

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.