Struct objc2_app_kit::NSImage

source ·
#[repr(C)]
pub struct NSImage { /* private fields */ }
Available on crate feature NSImage only.

Implementations§

source§

impl NSImage

source

pub unsafe fn imageNamed(name: &NSImageName) -> Option<Id<NSImage>>

source

pub unsafe fn imageWithSystemSymbolName_accessibilityDescription( name: &NSString, description: Option<&NSString> ) -> Option<Id<Self>>

source

pub unsafe fn imageWithSystemSymbolName_variableValue_accessibilityDescription( name: &NSString, value: c_double, description: Option<&NSString> ) -> Option<Id<Self>>

source

pub unsafe fn imageWithSymbolName_variableValue( name: &NSString, value: c_double ) -> Option<Id<Self>>

source

pub unsafe fn imageWithSymbolName_bundle_variableValue( name: &NSString, bundle: Option<&NSBundle>, value: c_double ) -> Option<Id<Self>>

source

pub unsafe fn initWithSize(this: Allocated<Self>, size: NSSize) -> Id<Self>

source

pub unsafe fn initWithCoder(this: Allocated<Self>, coder: &NSCoder) -> Id<Self>

source

pub fn initWithData(this: Allocated<Self>, data: &NSData) -> Option<Id<Self>>

source

pub unsafe fn initWithContentsOfFile( this: Allocated<Self>, file_name: &NSString ) -> Option<Id<Self>>

source

pub unsafe fn initWithContentsOfURL( this: Allocated<Self>, url: &NSURL ) -> Option<Id<Self>>

source

pub fn initByReferencingFile( this: Allocated<Self>, file_name: &NSString ) -> Option<Id<Self>>

source

pub unsafe fn initByReferencingURL( this: Allocated<Self>, url: &NSURL ) -> Id<Self>

source

pub unsafe fn initWithPasteboard( this: Allocated<Self>, pasteboard: &NSPasteboard ) -> Option<Id<Self>>

Available on crate feature NSPasteboard only.
source

pub unsafe fn initWithDataIgnoringOrientation( this: Allocated<Self>, data: &NSData ) -> Option<Id<Self>>

source

pub unsafe fn imageWithSize_flipped_drawingHandler( size: NSSize, drawing_handler_should_be_called_with_flipped_context: bool, drawing_handler: &Block<dyn Fn(NSRect) -> Bool> ) -> Id<Self>

Available on crate feature block2 only.
source

pub unsafe fn size(&self) -> NSSize

source

pub unsafe fn setSize(&self, size: NSSize)

source

pub unsafe fn setName(&self, string: Option<&NSImageName>) -> bool

source

pub unsafe fn name(&self) -> Option<Id<NSImageName>>

source

pub unsafe fn backgroundColor(&self) -> Id<NSColor>

Available on crate feature NSColor only.
source

pub unsafe fn setBackgroundColor(&self, background_color: &NSColor)

Available on crate feature NSColor only.
source

pub unsafe fn usesEPSOnResolutionMismatch(&self) -> bool

source

pub unsafe fn setUsesEPSOnResolutionMismatch( &self, uses_eps_on_resolution_mismatch: bool )

source

pub unsafe fn prefersColorMatch(&self) -> bool

source

pub unsafe fn setPrefersColorMatch(&self, prefers_color_match: bool)

source

pub unsafe fn matchesOnMultipleResolution(&self) -> bool

source

pub unsafe fn setMatchesOnMultipleResolution( &self, matches_on_multiple_resolution: bool )

source

pub unsafe fn matchesOnlyOnBestFittingAxis(&self) -> bool

source

pub unsafe fn setMatchesOnlyOnBestFittingAxis( &self, matches_only_on_best_fitting_axis: bool )

source

pub unsafe fn drawAtPoint_fromRect_operation_fraction( &self, point: NSPoint, from_rect: NSRect, op: NSCompositingOperation, delta: CGFloat )

Available on crate feature NSGraphics only.
source

pub unsafe fn drawInRect_fromRect_operation_fraction( &self, rect: NSRect, from_rect: NSRect, op: NSCompositingOperation, delta: CGFloat )

Available on crate feature NSGraphics only.
source

pub unsafe fn drawInRect_fromRect_operation_fraction_respectFlipped_hints( &self, dst_space_portion_rect: NSRect, src_space_portion_rect: NSRect, op: NSCompositingOperation, requested_alpha: CGFloat, respect_context_is_flipped: bool, hints: Option<&NSDictionary<NSImageHintKey, AnyObject>> )

Available on crate features NSGraphics and NSImageRep only.
source

pub unsafe fn drawRepresentation_inRect( &self, image_rep: &NSImageRep, rect: NSRect ) -> bool

Available on crate feature NSImageRep only.
source

pub unsafe fn drawInRect(&self, rect: NSRect)

source

pub unsafe fn recache(&self)

source

pub unsafe fn TIFFRepresentation(&self) -> Option<Id<NSData>>

source

pub unsafe fn TIFFRepresentationUsingCompression_factor( &self, comp: NSTIFFCompression, factor: c_float ) -> Option<Id<NSData>>

Available on crate feature NSBitmapImageRep only.
source

pub unsafe fn representations(&self) -> Id<NSArray<NSImageRep>>

Available on crate feature NSImageRep only.
source

pub unsafe fn addRepresentations(&self, image_reps: &NSArray<NSImageRep>)

Available on crate feature NSImageRep only.
source

pub unsafe fn addRepresentation(&self, image_rep: &NSImageRep)

Available on crate feature NSImageRep only.
source

pub unsafe fn removeRepresentation(&self, image_rep: &NSImageRep)

Available on crate feature NSImageRep only.
source

pub unsafe fn isValid(&self) -> bool

source

pub unsafe fn delegate(&self) -> Option<Id<ProtocolObject<dyn NSImageDelegate>>>

source

pub unsafe fn setDelegate( &self, delegate: Option<&ProtocolObject<dyn NSImageDelegate>> )

source

pub unsafe fn imageTypes() -> Id<NSArray<NSString>>

source

pub unsafe fn imageUnfilteredTypes() -> Id<NSArray<NSString>>

source

pub unsafe fn canInitWithPasteboard(pasteboard: &NSPasteboard) -> bool

Available on crate feature NSPasteboard only.
source

pub unsafe fn cacheMode(&self) -> NSImageCacheMode

source

pub unsafe fn setCacheMode(&self, cache_mode: NSImageCacheMode)

source

pub unsafe fn alignmentRect(&self) -> NSRect

source

pub unsafe fn setAlignmentRect(&self, alignment_rect: NSRect)

source

pub unsafe fn isTemplate(&self) -> bool

source

pub unsafe fn setTemplate(&self, template: bool)

source

pub unsafe fn accessibilityDescription(&self) -> Option<Id<NSString>>

source

pub unsafe fn setAccessibilityDescription( &self, accessibility_description: Option<&NSString> )

source

pub unsafe fn bestRepresentationForRect_context_hints( &self, rect: NSRect, reference_context: Option<&NSGraphicsContext>, hints: Option<&NSDictionary<NSImageHintKey, AnyObject>> ) -> Option<Id<NSImageRep>>

Available on crate features NSGraphicsContext and NSImageRep only.
source

pub unsafe fn hitTestRect_withImageDestinationRect_context_hints_flipped( &self, test_rect_dest_space: NSRect, image_rect_dest_space: NSRect, context: Option<&NSGraphicsContext>, hints: Option<&NSDictionary<NSImageHintKey, AnyObject>>, flipped: bool ) -> bool

Available on crate features NSGraphicsContext and NSImageRep only.
source

pub unsafe fn recommendedLayerContentsScale( &self, preferred_contents_scale: CGFloat ) -> CGFloat

source

pub unsafe fn layerContentsForContentsScale( &self, layer_contents_scale: CGFloat ) -> Id<AnyObject>

source

pub unsafe fn capInsets(&self) -> NSEdgeInsets

source

pub unsafe fn setCapInsets(&self, cap_insets: NSEdgeInsets)

source

pub unsafe fn resizingMode(&self) -> NSImageResizingMode

source

pub unsafe fn setResizingMode(&self, resizing_mode: NSImageResizingMode)

source

pub unsafe fn imageWithSymbolConfiguration( &self, configuration: &NSImageSymbolConfiguration ) -> Option<Id<NSImage>>

source

pub unsafe fn symbolConfiguration(&self) -> Id<NSImageSymbolConfiguration>

source

pub unsafe fn imageWithLocale(&self, locale: Option<&NSLocale>) -> Id<NSImage>

source

pub unsafe fn locale(&self) -> Option<Id<NSLocale>>

source§

impl NSImage

Methods declared on superclass NSObject

source

pub unsafe fn init(this: Allocated<Self>) -> Id<Self>

source

pub unsafe fn new() -> Id<Self>

source§

impl NSImage

Deprecated

source

pub unsafe fn imageUnfilteredFileTypes() -> Id<NSArray<NSString>>

👎Deprecated: Use +imageUnfilteredTypes instead
source

pub unsafe fn imageUnfilteredPasteboardTypes() -> Id<NSArray<NSPasteboardType>>

👎Deprecated: Use +imageUnfilteredTypes instead
Available on crate feature NSPasteboard only.
source

pub unsafe fn imageFileTypes() -> Id<NSArray<NSString>>

👎Deprecated: Use +imageTypes instead
source

pub unsafe fn imagePasteboardTypes() -> Id<NSArray<NSPasteboardType>>

👎Deprecated: Use +imageTypes instead
Available on crate feature NSPasteboard only.
source

pub unsafe fn bestRepresentationForDevice( &self, device_description: Option<&NSDictionary> ) -> Option<Id<NSImageRep>>

👎Deprecated: Use -[NSImage bestRepresentationForRect:context:hints:] instead. Any deviceDescription dictionary is also a valid hints dictionary.
Available on crate feature NSImageRep only.
source

pub unsafe fn lockFocus(&self)

👎Deprecated: This method is incompatible with resolution-independent drawing and should not be used. Instead, use +[NSImage imageWithSize:flipped:drawingHandler:] to create a block-based image describing the desired image drawing, or use +[NSGraphicsContext graphicsContextWithBitmapImageRep:] to manipulate specific bitmap image representations.
source

pub unsafe fn lockFocusFlipped(&self, flipped: bool)

👎Deprecated: This method is incompatible with resolution-independent drawing and should not be used. Instead, use +[NSImage imageWithSize:flipped:drawingHandler:] to create a block-based image describing the desired image drawing, or use +[NSGraphicsContext graphicsContextWithBitmapImageRep:] to manipulate specific bitmap image representations.
source

pub unsafe fn unlockFocus(&self)

👎Deprecated: This method is incompatible with resolution-independent drawing and should not be used. Instead, use +[NSImage imageWithSize:flipped:drawingHandler:] to create a block-based image describing the desired image drawing, or use +[NSGraphicsContext graphicsContextWithBitmapImageRep:] to manipulate specific bitmap image representations.
source

pub unsafe fn setFlipped(&self, flag: bool)

👎Deprecated: The concept of flippedness for NSImage is deprecated. Please see the AppKit 10.6 release notes for a discussion of why and for how to replace existing usage.
source

pub unsafe fn isFlipped(&self) -> bool

👎Deprecated: The concept of flippedness for NSImage is deprecated. Please see the AppKit 10.6 release notes for a discussion of why and for how to replace existing usage.
source

pub unsafe fn setScalesWhenResized(&self, flag: bool)

👎Deprecated: You should be able to remove use of this method without any replacement. See 10.6 AppKit release notes for details.
source

pub unsafe fn scalesWhenResized(&self) -> bool

👎Deprecated: You should be able to remove use of this method without any replacement. See 10.6 AppKit release notes for details.
source

pub unsafe fn setDataRetained(&self, flag: bool)

👎Deprecated: You should be able to remove use of this method without any replacement. See 10.6 AppKit release notes for details.
source

pub unsafe fn isDataRetained(&self) -> bool

👎Deprecated: You should be able to remove use of this method without any replacement. See 10.6 AppKit release notes for details.
source

pub unsafe fn setCachedSeparately(&self, flag: bool)

👎Deprecated: You should be able to remove use of this method without any replacement. See 10.6 AppKit release notes for details.
source

pub unsafe fn isCachedSeparately(&self) -> bool

👎Deprecated: You should be able to remove use of this method without any replacement. See 10.6 AppKit release notes for details.
source

pub unsafe fn setCacheDepthMatchesImageDepth(&self, flag: bool)

👎Deprecated: You should be able to remove use of this method without any replacement. See 10.6 AppKit release notes for details.
source

pub unsafe fn cacheDepthMatchesImageDepth(&self) -> bool

👎Deprecated: You should be able to remove use of this method without any replacement. See 10.6 AppKit release notes for details.
source

pub unsafe fn dissolveToPoint_fraction(&self, point: NSPoint, fraction: CGFloat)

👎Deprecated: Use -drawAtPoint:… or -drawInRect:… methods instead
source

pub unsafe fn dissolveToPoint_fromRect_fraction( &self, point: NSPoint, rect: NSRect, fraction: CGFloat )

👎Deprecated: Use -drawAtPoint:… or -drawInRect:… methods instead
source

pub unsafe fn compositeToPoint_operation( &self, point: NSPoint, operation: NSCompositingOperation )

👎Deprecated: Use -drawAtPoint:… or -drawInRect:… methods instead
Available on crate feature NSGraphics only.
source

pub unsafe fn compositeToPoint_fromRect_operation( &self, point: NSPoint, rect: NSRect, operation: NSCompositingOperation )

👎Deprecated: Use -drawAtPoint:… or -drawInRect:… methods instead
Available on crate feature NSGraphics only.
source

pub unsafe fn compositeToPoint_operation_fraction( &self, point: NSPoint, operation: NSCompositingOperation, fraction: CGFloat )

👎Deprecated: Use -drawAtPoint:… or -drawInRect:… methods instead
Available on crate feature NSGraphics only.
source

pub unsafe fn compositeToPoint_fromRect_operation_fraction( &self, point: NSPoint, rect: NSRect, operation: NSCompositingOperation, fraction: CGFloat )

👎Deprecated: Use -drawAtPoint:… or -drawInRect:… methods instead
Available on crate feature NSGraphics only.
source

pub unsafe fn lockFocusOnRepresentation( &self, image_representation: Option<&NSImageRep> )

👎Deprecated: Create an image using +[NSImage imageWithSize:flipped:drawingHandler:], and begin your custom drawing with -[NSImageRep drawInRect:] instead.
Available on crate feature NSImageRep only.
source

pub unsafe fn cancelIncrementalLoad(&self)

👎Deprecated: This method does not perform any operation on 10.4 or later.

Methods from Deref<Target = NSObject>§

source

pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !

Handle messages the object doesn’t recognize.

See Apple’s documentation for details.

Methods from Deref<Target = AnyObject>§

source

pub fn class(&self) -> &'static AnyClass

Available on crate feature NSAccessibilityConstants only.

Dynamically find the class of this object.

§Example

Check that an instance of NSObject has the precise class NSObject.

use objc2::ClassType;
use objc2::runtime::NSObject;

let obj = NSObject::new();
assert_eq!(obj.class(), NSObject::class());
source

pub unsafe fn get_ivar<T>(&self, name: &str) -> &T
where T: Encode,

👎Deprecated: this is difficult to use correctly, use Ivar::load instead.
Available on crate feature NSAccessibilityConstants only.

Use Ivar::load instead.

§Safety

The object must have an instance variable with the given name, and it must be of type T.

See Ivar::load_ptr for details surrounding this.

source

pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut T
where T: Encode,

👎Deprecated: this is difficult to use correctly, use Ivar::load_mut instead.
Available on crate feature NSAccessibilityConstants only.

Use Ivar::load_mut instead.

§Safety

The object must have an instance variable with the given name, and it must be of type T.

See Ivar::load_ptr for details surrounding this.

Trait Implementations§

source§

impl AsMut<AnyObject> for NSImage

source§

fn as_mut(&mut self) -> &mut AnyObject

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<NSImage> for NSImage

source§

fn as_mut(&mut self) -> &mut Self

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<NSObject> for NSImage

source§

fn as_mut(&mut self) -> &mut NSObject

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsRef<AnyObject> for NSImage

source§

fn as_ref(&self) -> &AnyObject

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

impl AsRef<NSImage> for NSImage

source§

fn as_ref(&self) -> &Self

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

impl AsRef<NSObject> for NSImage

source§

fn as_ref(&self) -> &NSObject

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

impl Borrow<AnyObject> for NSImage

source§

fn borrow(&self) -> &AnyObject

Immutably borrows from an owned value. Read more
source§

impl Borrow<NSObject> for NSImage

source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
source§

impl BorrowMut<AnyObject> for NSImage

source§

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

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<NSObject> for NSImage

source§

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

Mutably borrows from an owned value. Read more
source§

impl ClassType for NSImage

§

type Super = NSObject

The superclass of this class. Read more
§

type Mutability = InteriorMutable

Whether the type is mutable or immutable. Read more
source§

const NAME: &'static str = "NSImage"

The name of the Objective-C class that this type represents. Read more
source§

fn class() -> &'static AnyClass

Get a reference to the Objective-C class that this type represents. Read more
source§

fn as_super(&self) -> &Self::Super

Get an immutable reference to the superclass.
source§

fn as_super_mut(&mut self) -> &mut Self::Super

Get a mutable reference to the superclass.
source§

fn retain(&self) -> Id<Self>
where Self: IsRetainable + Sized,

Increment the reference count of the receiver. Read more
source§

fn alloc() -> Allocated<Self>

Allocate a new instance of the class. Read more
source§

impl Debug for NSImage

source§

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

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

impl Deref for NSImage

§

type Target = NSObject

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl DerefMut for NSImage

source§

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

Mutably dereferences the value.
source§

impl Hash for NSImage

source§

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

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 NSCoding for NSImage

source§

unsafe fn encodeWithCoder(&self, coder: &NSCoder)
where Self: Sized + Message,

Available on crate feature NSCoder only.
source§

unsafe fn initWithCoder( this: Allocated<Self>, coder: &NSCoder ) -> Option<Id<Self>>
where Self: Sized + Message,

Available on crate feature NSCoder only.
source§

impl NSCopying for NSImage

source§

fn copy(&self) -> Id<Self::Immutable>

Returns a new instance that’s a copy of the receiver. Read more
source§

unsafe fn copyWithZone(&self, zone: *mut NSZone) -> Id<Self::Immutable>

Available on crate feature NSZone only.
Returns a new instance that’s a copy of the receiver. Read more
source§

impl NSItemProviderReading for NSImage

source§

unsafe fn readableTypeIdentifiersForItemProvider() -> Id<NSArray<NSString>>
where Self: Sized + ClassType,

Available on crate features NSArray and NSString only.
source§

unsafe fn objectWithItemProviderData_typeIdentifier_error( data: &NSData, type_identifier: &NSString ) -> Result<Id<Self>, Id<NSError>>
where Self: Sized + ClassType,

Available on crate features NSData and NSError and NSString only.
source§

impl NSItemProviderWriting for NSImage

source§

unsafe fn writableTypeIdentifiersForItemProvider_class( ) -> Id<NSArray<NSString>>
where Self: Sized + ClassType,

Available on crate features NSArray and NSString only.
source§

unsafe fn writableTypeIdentifiersForItemProvider(&self) -> Id<NSArray<NSString>>
where Self: Sized + Message,

Available on crate features NSArray and NSString only.
source§

unsafe fn itemProviderVisibilityForRepresentationWithTypeIdentifier_class( type_identifier: &NSString ) -> NSItemProviderRepresentationVisibility
where Self: Sized + ClassType,

Available on crate feature NSString only.
source§

unsafe fn itemProviderVisibilityForRepresentationWithTypeIdentifier( &self, type_identifier: &NSString ) -> NSItemProviderRepresentationVisibility
where Self: Sized + Message,

Available on crate feature NSString only.
source§

impl NSObjectProtocol for NSImage

source§

fn isEqual(&self, other: &AnyObject) -> bool
where Self: Sized + Message,

Check whether the object is equal to an arbitrary other object. Read more
source§

fn hash(&self) -> usize
where Self: Sized + Message,

An integer that can be used as a table address in a hash table structure. Read more
source§

fn isKindOfClass(&self, cls: &AnyClass) -> bool
where Self: Sized + Message,

Check if the object is an instance of the class, or one of its subclasses. Read more
source§

fn is_kind_of<T>(&self) -> bool
where T: ClassType, Self: Sized + Message,

Check if the object is an instance of the class type, or one of its subclasses. Read more
source§

fn isMemberOfClass(&self, cls: &AnyClass) -> bool
where Self: Sized + Message,

Check if the object is an instance of a specific class, without checking subclasses. Read more
source§

fn respondsToSelector(&self, aSelector: Sel) -> bool
where Self: Sized + Message,

Check whether the object implements or inherits a method with the given selector. Read more
source§

fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
where Self: Sized + Message,

Check whether the object conforms to a given protocol. Read more
source§

fn description(&self) -> Id<NSObject>
where Self: Sized + Message,

A textual representation of the object. Read more
source§

fn debugDescription(&self) -> Id<NSObject>
where Self: Sized + Message,

A textual representation of the object to use when debugging. Read more
source§

fn isProxy(&self) -> bool
where Self: Sized + Message,

Check whether the receiver is a subclass of the NSProxy root class instead of the usual NSObject. Read more
source§

fn retainCount(&self) -> usize
where Self: Sized + Message,

The reference count of the object. Read more
source§

impl NSPasteboardReading for NSImage

Available on crate feature NSPasteboard only.
source§

impl NSPasteboardWriting for NSImage

Available on crate feature NSPasteboard only.
source§

impl NSSecureCoding for NSImage

source§

unsafe fn supportsSecureCoding() -> bool
where Self: Sized + ClassType,

source§

impl PartialEq for NSImage

source§

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

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

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

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

impl RefEncode for NSImage

source§

const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF

The Objective-C type-encoding for a reference of this type. Read more
source§

impl Eq for NSImage

source§

impl Message for NSImage

source§

impl StructuralPartialEq for NSImage

Auto Trait Implementations§

§

impl !Freeze for NSImage

§

impl !RefUnwindSafe for NSImage

§

impl !Send for NSImage

§

impl !Sync for NSImage

§

impl !Unpin for NSImage

§

impl !UnwindSafe for NSImage

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> CounterpartOrSelf for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityCounterpartOrSelf<T>,

§

type Immutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Immutable

The immutable counterpart of the type, or Self if the type has no immutable counterpart. Read more
§

type Mutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Mutable

The mutable counterpart of the type, or Self if the type has no mutable counterpart. 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.
source§

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

source§

impl<T> IsAllocableAnyThread for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityIsAllocableAnyThread,

source§

impl<T> IsIdCloneable for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityIsIdCloneable,

source§

impl<T> IsRetainable for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityIsRetainable,