Skip to main content

Allocated

Struct Allocated 

Source
pub struct Allocated<T: Release + 'static>(/* private fields */);

Implementations§

Source§

impl Allocated<AudioUnit>

Source

pub unsafe fn init_with_comp_desc_opts_err<'ear>( self, desc: ComponentDesc, opts: ComponentInstantiationOpts, err: *mut Option<&'ear Error>, ) -> Option<R<AudioUnit>>

Source

pub unsafe fn init_with_comp_desc_err<'ear>( self, desc: ComponentDesc, err: *mut Option<&'ear Error>, ) -> Option<R<AudioUnit>>

Source§

impl Allocated<SysZoomSlider>

Source

pub unsafe fn init_with_device_throws( self, device: &CaptureDevice, ) -> R<SysZoomSlider>

Source

pub fn init_with_device<'ear>( self, device: &CaptureDevice, ) -> ExResult<'ear, R<SysZoomSlider>>

Source

pub unsafe fn init_with_device_action_throws( self, device: &CaptureDevice, action: &mut EscBlock<fn(video_zoom_factor: Float)>, ) -> R<SysZoomSlider>

Source

pub fn init_with_device_action<'ear>( self, device: &CaptureDevice, action: &mut EscBlock<fn(video_zoom_factor: Float)>, ) -> ExResult<'ear, R<SysZoomSlider>>

Source§

impl Allocated<SysExposureBiasSlider>

Source

pub unsafe fn init_with_device_throws( self, device: &CaptureDevice, ) -> R<SysExposureBiasSlider>

Source

pub fn init_with_device<'ear>( self, device: &CaptureDevice, ) -> ExResult<'ear, R<SysExposureBiasSlider>>

Source

pub unsafe fn init_with_device_action_throws( self, device: &CaptureDevice, action: &mut EscBlock<fn(video_zoom_factor: Float)>, ) -> R<SysExposureBiasSlider>

Source

pub fn init_with_device_action<'ear>( self, device: &CaptureDevice, action: &mut EscBlock<fn(video_zoom_factor: Float)>, ) -> ExResult<'ear, R<SysExposureBiasSlider>>

Source§

impl Allocated<Slider>

Source

pub unsafe fn init_with_range_throws( self, localized_title: &String, symbol_name: &String, min_val: f32, max_val: f32, ) -> R<Slider>

Source

pub fn init_with_range<'ear>( self, localized_title: &String, symbol_name: &String, min_val: f32, max_val: f32, ) -> ExResult<'ear, R<Slider>>

Source

pub unsafe fn init_with_range_step_throws( self, localized_title: &String, symbol_name: &String, min_val: f32, max_val: f32, step: f32, ) -> R<Slider>

Source

pub fn init_with_range_step<'ear>( self, localized_title: &String, symbol_name: &String, min_val: f32, max_val: f32, step: f32, ) -> ExResult<'ear, R<Slider>>

Source

pub unsafe fn init_with_vals_throws( self, localized_title: &String, symbol_name: &String, vals: &Array<Number>, ) -> R<Slider>

Source

pub fn init_with_vals<'ear>( self, localized_title: &String, symbol_name: &String, vals: &Array<Number>, ) -> ExResult<'ear, R<Slider>>

Source§

impl Allocated<IndexPicker>

Source

pub unsafe fn init_with_indexes_n_throws( self, localized_title: &String, symbol_name: &String, n: isize, ) -> R<IndexPicker>

Source

pub fn init_with_indexes_n<'ear>( self, localized_title: &String, symbol_name: &String, n: isize, ) -> ExResult<'ear, R<IndexPicker>>

Source

pub unsafe fn init_with_indexes_titles_throws( self, localized_title: &String, symbol_name: &String, titles: &Array<String>, ) -> R<IndexPicker>

Source

pub fn init_with_titles<'ear>( self, localized_title: &String, symbol_name: &String, titles: &Array<String>, ) -> ExResult<'ear, R<IndexPicker>>

Source§

impl Allocated<RotationCoordinator>

Source

pub fn init_with_device_preview_layer( &self, device: &Device, preview_layer: Option<&Layer>, ) -> R<RotationCoordinator>

Source§

impl Allocated<DeviceInput>

Source

pub fn init_with_device_err<'ear>( self, device: &CaptureDevice, error: *mut Option<&'ear Error>, ) -> Option<R<DeviceInput>>

Source§

impl Allocated<Session>

Source

pub fn init(self) -> Retained<Session>

Source§

impl Allocated<MultiCamSession>

Source§

impl Allocated<Connection>

Source§

impl Allocated<MetadataOutput>

Source§

impl Allocated<VideoDataOutput>

Source§

impl Allocated<VideoPreviewLayer>

Source§

impl Allocated<PhotoOutput>

Source§

impl Allocated<PhotoSettings>

Source§

impl Allocated<AudioDataOutput>

Source§

impl Allocated<ItemVideoOutput>

Source§

impl Allocated<Player>

Source

pub fn init_with_url(self, url: &Url) -> R<Player>

Source

pub unsafe fn init_with_player_item_throws( self, item: Option<&PlayerItem>, ) -> R<Player>

Source§

impl Allocated<QueuePlayer>

Source§

impl Allocated<QueuePlayer>

Source

pub unsafe fn init_with_items_throws( self, items: &Array<PlayerItem>, ) -> R<QueuePlayer>

Source§

impl Allocated<PlayerLayer>

Source§

impl Allocated<Reader>

Source

pub unsafe fn init_with_assert_err<'ear>( self, asset: &Asset, error: *mut Option<&'ear Error>, ) -> Option<R<Reader>>

Source§

impl Allocated<ReaderTrackOutput>

Source

pub fn init_with_track_throws( self, track: &Track, output_settings: Option<&Dictionary<String, Id>>, ) -> R<ReaderTrackOutput>

Source§

impl Allocated<Writer>

Source

pub fn init_with_url_file_type_err<'ear>( self, url: &Url, file_type: &FileType, error: *mut Option<&'ear Error>, ) -> Option<R<Writer>>

Source

pub unsafe fn init_with_content_type_throws( self, output_content_type: &Type, ) -> R<Writer>

Source§

impl Allocated<WriterInput>

Source

pub unsafe fn init_media_type_output_settings_throws( self, media_type: &MediaType, output_settings: Option<&Dictionary<String, Id>>, ) -> R<WriterInput>

Source

pub unsafe fn with_media_type_output_settings_source_format_hint_throws( self, media_type: &MediaType, output_settings: Option<&Dictionary<String, Id>>, source_format_hint: Option<&FormatDesc>, ) -> R<WriterInput>

Source§

impl Allocated<WriterInputPixelBufAdaptor>

Source§

impl Allocated<ImageGenerator>

Source

pub fn init_with_asset(self, asset: &Asset) -> R<ImageGenerator>

Source§

impl Allocated<UrlAsset>

Source

pub fn init_with_url_opts( self, url: &Url, options: Option<&Dictionary<String, Id>>, ) -> Option<R<UrlAsset>>

Source§

impl Allocated<Effect>

Source§

impl Allocated<UnitEq>

Source

pub fn init_with_number_of_bands(self, number_of_bands: usize) -> R<UnitEq>

Source§

impl Allocated<TimeEffect>

Source§

impl Allocated<Mix>

Source

pub fn init(self) -> Retained<Mix>

Source§

impl Allocated<MixMut>

Source

pub fn init(self) -> Retained<MixMut>

Source§

impl Allocated<InputParams>

Source§

impl Allocated<InputParamsMut>

Source§

impl Allocated<MixerNode>

Source

pub fn init(self) -> Retained<MixerNode>

Source§

impl Allocated<Time>

Source

pub fn init_with_audio_ts_sample_rate( self, ts: &AudioTimeStamp, sample_rate: f64, ) -> R<Time>

Source

pub fn init_with_host_time(self, host_time: u64) -> R<Time>

Source

pub fn init_with_host_time_sample_rate_at_rate( self, host_time: u64, sample_time: FramePos, at_rate: f64, ) -> R<Time>

Source

pub fn init_with_sample_time_at_rate( self, time: FramePos, at_rate: f64, ) -> R<Time>

Source§

impl Allocated<Engine>

Source

pub fn init(self) -> Retained<Engine>

Source§

impl Allocated<Player>

Source

pub unsafe fn init_with_url_err<'ear>( self, url: &Url, err: *mut Option<&'ear Error>, ) -> Option<R<Player>>

Source

pub unsafe fn init_with_data_err<'ear>( self, data: &Data, err: *mut Option<&'ear Error>, ) -> Option<R<Player>>

Source

pub unsafe fn init_with_url_hint_err<'ear>( self, url: &Url, hint: Option<&String>, err: *mut Option<&'ear Error>, ) -> Option<R<Player>>

Source

pub unsafe fn init_with_data_hint_err<'ear>( self, data: &Data, hint: Option<&String>, err: *mut Option<&'ear Error>, ) -> Option<R<Player>>

Source§

impl Allocated<PlayerNode>

Source

pub fn init(self) -> Retained<PlayerNode>

Source§

impl Allocated<PcmBuf>

Source

pub fn init_with_pcm_format_frame_capacity( self, format: &Format, frame_capacity: FrameCount, ) -> Option<R<PcmBuf>>

Source

pub fn init_with_pcm_format_buf_list_no_copy<const N: usize>( self, format: &Format, buf_list: &AudioBufList<N>, deallocator: Option<&mut EscBlock<fn(buf_list: *const AudioBufList<N>)>>, ) -> Option<R<PcmBuf>>

Source§

impl Allocated<CompressedBuf>

Source

pub fn init_with_format_and_packet_capacity( self, format: &Format, packet_capacity: PacketCount, ) -> R<CompressedBuf>

Source

pub fn init_with_format_packet_capacity_and_maximum_packet_size( self, format: &Format, packet_capacity: PacketCount, maximum_packet_size: isize, ) -> R<CompressedBuf>

Source§

impl Allocated<Format>

Source§

impl Allocated<File>

Source

pub unsafe fn init_for_reading_err_ar<'ear>( self, file_url: &Url, err: *mut Option<&'ear Error>, ) -> Option<Rar<File>>

Source

pub unsafe fn init_for_reading_err<'ear>( self, file_url: &Url, err: *mut Option<&'ear Error>, ) -> Option<R<File>>

Source

pub unsafe fn init_for_reading_common_format_err_ar<'ear>( self, file_url: &Url, common_format: CommonFormat, interleaved: bool, err: *mut Option<&'ear Error>, ) -> Option<Rar<File>>

Source

pub unsafe fn init_for_reading_common_format_err<'ear>( self, file_url: &Url, common_format: CommonFormat, interleaved: bool, err: *mut Option<&'ear Error>, ) -> Option<R<File>>

Source

pub unsafe fn init_for_writing_err_ar<'ear>( self, file_url: &Url, settings: &Dictionary<String, Id>, err: *mut Option<&'ear Error>, ) -> Option<Rar<File>>

Source

pub unsafe fn init_for_writing_err<'ear>( self, file_url: &Url, settings: &Dictionary<String, Id>, err: *mut Option<&'ear Error>, ) -> Option<R<File>>

Source

pub unsafe fn init_for_writing_common_format_err_ar<'ear>( self, file_url: &Url, settings: &Dictionary<String, Id>, common_format: CommonFormat, interleaved: bool, err: *mut Option<&'ear Error>, ) -> Option<Rar<File>>

Source

pub unsafe fn init_for_writing_common_format_err<'ear>( self, file_url: &Url, settings: &Dictionary<String, Id>, common_format: CommonFormat, interleaved: bool, err: *mut Option<&'ear Error>, ) -> Option<R<File>>

Source§

impl Allocated<ChannelLayout>

Source§

impl Allocated<ConnectionPoint>

Source

pub fn init_with_node_bus(self, node: &Node, bus: NodeBus) -> R<ConnectionPoint>

Source§

impl Allocated<Converter>

Source§

impl Allocated<Voice>

Source

pub fn init(self) -> Retained<Voice>

Source§

impl Allocated<Utterance>

Source

pub fn init(self) -> Retained<Utterance>

Source§

impl Allocated<Utterance>

Source

pub fn init_with_string(self, val: &String) -> R<Utterance>

Source

pub fn init_with_attr_string(self, val: &AttrString) -> R<Utterance>

Source

pub fn init_with_ssml(self, val: &String) -> R<Utterance>

Source§

impl Allocated<Synthesizer>

Source§

impl Allocated<DisplayLayer>

Source§

impl Allocated<VideoRenderer>

Source§

impl Allocated<PipController>

Source

pub fn init_with_content_src( self, content_src: &PipControllerContentSrc, ) -> R<PipController>

Source

pub fn sel_init_with_content_src() -> &'static Sel

@selector(initWithContentSource:) but dynamic use this function to check if object responds to selector

Source

pub fn init_with_player_layer( self, player_layer: &PlayerLayer, ) -> Option<R<PipController>>

Source§

impl Allocated<PipControllerContentSrc>

Source

pub fn init_with_player_layer( self, player_layer: &PlayerLayer, ) -> R<PipControllerContentSrc>

Source

pub fn sel_init_with_player_layer() -> &'static Sel

@selector(initWithPlayerLayer:) but dynamic use this function to check if object responds to selector

Source§

impl Allocated<PipControllerContentSrc>

Source§

impl Allocated<PlaybackSpeed>

Source

pub fn init_with_rate( self, rate: f32, localized_name: &String, ) -> R<PlaybackSpeed>

Source§

impl Allocated<DisplayLink>

Source§

impl Allocated<Animation>

Source

pub fn init(self) -> Retained<Animation>

Source§

impl Allocated<MediaTimingFn>

Source

pub fn init_with_ctrl_points( self, c1x: f32, c1y: f32, c2x: f32, c2y: f32, ) -> R<MediaTimingFn>

Source§

impl Allocated<Layer>

Source

pub fn init(self) -> Retained<Layer>

Source§

impl Allocated<MetalLayer>

Source

pub fn init(self) -> Retained<MetalLayer>

Source§

impl Allocated<Transaction>

Source§

impl Allocated<Context>

Source

pub fn init(self) -> Retained<Context>

Source§

impl Allocated<Context>

Source

pub fn init_with_opts( self, options: Option<&Dictionary<String, Id>>, ) -> Option<R<Context>>

Source§

impl Allocated<Image>

Source§

impl Allocated<Vec>

Source

pub fn init_with_vals(self, values: *const Float, count: usize) -> R<Vec>

Source

pub fn init_ns_string(self, val: &String) -> R<Vec>

Source§

impl Allocated<LocationManager>

Source§

impl Allocated<Location>

Source

pub fn init(self) -> Retained<Location>

Source§

impl Allocated<Location>

Source§

impl Allocated<TapDesc>

Source

pub fn init(self) -> Retained<TapDesc>

Source§

impl Allocated<TapDesc>

Source

pub fn init_stereo_mixdown_of_processes_ar( self, processes_obj_ids_to_include: &Array<Number>, ) -> Rar<TapDesc>

Source

pub fn init_stereo_mixdown_of_processes( self, processes_obj_ids_to_include: &Array<Number>, ) -> R<TapDesc>

Source

pub fn init_stereo_global_tap_but_exclude_processes_ar( self, processes_obj_ids_to_exclude: &Array<Number>, ) -> Rar<TapDesc>

Source

pub fn init_stereo_global_tap_but_exclude_processes( self, processes_obj_ids_to_exclude: &Array<Number>, ) -> R<TapDesc>

Source

pub fn init_mono_mixdown_of_processes_ar( self, processes_obj_ids_to_include: &Array<Number>, ) -> Rar<TapDesc>

Source

pub fn init_mono_mixdown_of_processes( self, processes_obj_ids_to_include: &Array<Number>, ) -> R<TapDesc>

Source

pub fn init_mono_global_tap_but_exclude_processes_ar( self, processes_obj_ids_to_exclude: &Array<Number>, ) -> Rar<TapDesc>

Source

pub fn init_mono_global_tap_but_exclude_processes( self, processes_obj_ids_to_exclude: &Array<Number>, ) -> R<TapDesc>

Source

pub fn init_with_processes_and_device( self, processes_obj_ids_to_include: &Array<Number>, device_uid: &String, stream: isize, ) -> R<TapDesc>

Source

pub fn init_excluding_processes_and_device_ar( self, processes_obj_ids_to_exclude: &Array<Number>, device_uid: &String, stream: isize, ) -> Rar<TapDesc>

Source

pub fn init_excluding_processes_and_device( self, processes_obj_ids_to_exclude: &Array<Number>, device_uid: &String, stream: isize, ) -> R<TapDesc>

Source§

impl Allocated<HeadphoneMotionManager>

Source§

impl Allocated<MotionManager>

Source§

impl Allocated<Pedometer>

Source

pub fn init(self) -> Retained<Pedometer>

Source§

impl Allocated<Color>

Source

pub fn init_with_rgb(self, r: f32, g: f32, b: f32) -> R<Color>

Source§

impl Allocated<BrowserViewController>

Source

pub unsafe fn init_with_service_type_throws( self, service_type: &String, session: &Session, ) -> R<BrowserViewController>

Source

pub unsafe fn init_with_browser_throws( self, browser: &NearbyServiceBrowser, session: &Session, ) -> R<BrowserViewController>

Source§

impl Allocated<PeerId>

Source

pub unsafe fn init_with_display_name_throws( self, display_name: &String, ) -> R<PeerId>

Source§

impl Allocated<Session>

Source

pub unsafe fn init_with_peer_throws(self, peer: &PeerId) -> R<Session>

Source

pub unsafe fn init_with_encryption_throws( self, peer: &PeerId, sec_identity: Option<&Array<Id>>, encryption_preference: EncryptionPreference, ) -> R<Session>

Source§

impl Allocated<AdvertiserAssistant>

Source

pub unsafe fn init_service_type_throws_ar( self, peer: &PeerId, service_type: &String, ) -> Rar<AdvertiserAssistant>

Source

pub unsafe fn init_service_type_throws( self, peer: &PeerId, service_type: &String, ) -> R<AdvertiserAssistant>

Source§

impl Allocated<NearbyServiceAdvertiser>

Source

pub unsafe fn init_with_peer_throws( self, my_peer: &PeerId, discorvery_info: Option<&Dictionary<String, String>>, service_type: &String, ) -> R<NearbyServiceAdvertiser>

Source§

impl Allocated<NearbyServiceBrowser>

Source

pub unsafe fn init_with_peer_and_service_type_throws( self, peer: &PeerId, service_type: &String, ) -> R<NearbyServiceBrowser>

Source§

impl Allocated<GeometryDesc>

Source§

impl Allocated<TriangleGeometryDesc>

Source

pub fn init(self) -> Retained<TriangleGeometryDesc>

Source§

impl Allocated<MotionBoundingBoxGeometryDesc>

Source§

impl Allocated<TensorExtents>

Source§

impl Allocated<TensorExtents>

Source

pub fn sel_init_with_rank() -> &'static Sel

@selector(initWithRank:values:) but dynamic use this function to check if object responds to selector

Source

pub unsafe fn init_with_rank( self, rank: usize, values: *const usize, ) -> Option<R<TensorExtents>>

Source§

impl Allocated<TensorDesc>

Source

pub fn init(self) -> Retained<TensorDesc>

Source§

impl Allocated<Tensor>

Source

pub fn init(self) -> Retained<Tensor>

Source§

impl Allocated<ResidencySetDesc>

Source§

impl Allocated<CompileOpts>

Source§

impl Allocated<Desc>

Source

pub fn init(self) -> Retained<Desc>

Source§

impl Allocated<FnConstValues>

Source§

impl Allocated<FnStitchingAttrAlwaysInline>

Source§

impl Allocated<FnStitchingInputNode>

Source§

impl Allocated<FnStitchingInputNode>

Source§

impl Allocated<FnStitchingFnNode>

Source

pub fn init_with_name( self, name: &String, args: &Array<FnStitchingNode>, control_deps: &Array<FnStitchingFnNode>, ) -> R<FnStitchingFnNode>

Source§

impl Allocated<FnStitchingGraph>

Source

pub fn init_with_fn_name( self, fn_name: &String, nodes: &Array<FnStitchingFnNode>, output_node: Option<&FnStitchingFnNode>, attribtues: &Array<FnStitchingAttr>, ) -> R<FnStitchingGraph>

Source§

impl Allocated<FnStitchedLibDesc>

Source§

impl Allocated<FnDesc>

Source

pub fn init(self) -> Retained<FnDesc>

Source§

impl Allocated<Desc>

Source

pub fn init(self) -> Retained<Desc>

Source§

impl Allocated<Desc>

Source

pub fn init(self) -> Retained<Desc>

Source§

impl Allocated<TileRenderPipelineDesc>

Source§

impl Allocated<SharedEventListener>

Source§

impl Allocated<Desc>

Source

pub fn init(self) -> Retained<Desc>

Source§

impl Allocated<StencilDesc>

Source§

impl Allocated<DepthStencilDesc>

Source§

impl Allocated<VertexBufLayoutDesc>

Source§

impl Allocated<VertexAttrDesc>

Source§

impl Allocated<Desc>

Source

pub fn init(self) -> Retained<Desc>

Source§

impl Allocated<Desc>

Source

pub fn init(self) -> Retained<Desc>

Source§

impl Allocated<Desc>

Source

pub fn init(self) -> Retained<Desc>

Source§

impl Allocated<Desc>

Source

pub fn init(self) -> Retained<Desc>

Source§

impl Allocated<Desc>

Source

pub fn init(self) -> Retained<Desc>

Source§

impl Allocated<Desc>

Source

pub fn init(self) -> Retained<Desc>

Source§

impl Allocated<Desc>

Source

pub fn init(self) -> Retained<Desc>

Source§

impl Allocated<PipelineBufDesc>

Source§

impl Allocated<CaptureDesc>

Source§

impl Allocated<FrameInterpolatorDesc>

Source§

impl Allocated<TemporalDenoisedScalerDesc>

Source§

impl Allocated<SpatialScaleDesc>

Source§

impl Allocated<ArgTableDesc>

Source§

impl Allocated<CounterHeapDesc>

Source§

impl Allocated<CmdAllocatorDesc>

Source§

impl Allocated<CmdBufOpts>

Source

pub fn init(self) -> Retained<CmdBufOpts>

Source§

impl Allocated<CommitOpts>

Source

pub fn init(self) -> Retained<CommitOpts>

Source§

impl Allocated<CmdQueueDesc>

Source§

impl Allocated<CompilerDesc>

Source§

impl Allocated<RenderPassDesc>

Source§

impl Allocated<MlPipelineDesc>

Source§

impl Allocated<PipelineOpts>

Source§

impl Allocated<TextureLoader>

Source

pub fn init_with_device(self, device: &Device) -> R<TextureLoader>

Source§

impl Allocated<Device>

Source

pub fn init(self) -> Retained<Device>

Source§

impl Allocated<Graph>

Source

pub fn init(self) -> Retained<Graph>

Source§

impl Allocated<TrainingGraph>

Source§

impl Allocated<ExecutionDesc>

Source§

impl Allocated<Executable>

Source

pub fn init(self) -> Retained<Executable>

Source§

impl Allocated<Executable>

Source

pub fn init_with_mps_graph_package_at_url( self, mps_graph_package_url: &Url, compilation_descriptor: Option<&CompilationDesc>, ) -> R<Executable>

Source

pub fn sel_init_with_mps_graph_package_at_url() -> &'static Sel

@selector(initWithMPSGraphPackageAtURL:compilationDescriptor:) but dynamic use this function to check if object responds to selector

Source

pub fn init_with_core_ml_package_at_url( self, core_ml_package_url: &Url, compilation_descriptor: Option<&CompilationDesc>, ) -> R<Executable>

Source

pub fn sel_init_with_core_ml_package_at_url() -> &'static Sel

@selector(initWithCoreMLPackageAtURL:compilationDescriptor:) but dynamic use this function to check if object responds to selector

Source§

impl Allocated<TensorData>

Source

pub fn init(self) -> Retained<TensorData>

Source§

impl Allocated<TensorData>

Source

pub fn init_with_device_data_shape_data_type( self, device: &Device, data: &Data, shape: &Shape, data_type: DType, ) -> R<TensorData>

Source

pub fn init_with_mtl_buffer_shape_data_type( self, buffer: &Buf, shape: &Shape, data_type: DType, ) -> R<TensorData>

Source

pub fn init_with_mtl_buffer_shape_data_type_row_bytes( self, buffer: &Buf, shape: &Shape, data_type: DType, row_bytes: usize, ) -> R<TensorData>

Source

pub fn sel_init_with_mtl_buffer_shape_data_type_row_bytes() -> &'static Sel

@selector(initWithMTLBuffer:shape:dataType:rowBytes:) but dynamic use this function to check if object responds to selector

Source

pub fn init_with_mps_nd_array(self, ndarray: &NdArray) -> R<TensorData>

Source§

impl Allocated<SingleGateRnnDesc>

Source§

impl Allocated<LstmDesc>

Source

pub fn init(self) -> Retained<LstmDesc>

Source§

impl Allocated<GruDescr>

Source

pub fn init(self) -> Retained<GruDescr>

Source§

impl Allocated<CompilationDesc>

Source§

impl Allocated<ExecutionDesc>

Source§

impl Allocated<Graph>

Source

pub fn init(self) -> Retained<Graph>

Source§

impl Allocated<ArrayBatchProvider>

Source

pub fn init_with_feature_provider_array<P: FeatureProvider>( self, arr: &Array<P>, ) -> R<ArrayBatchProvider>

Source

pub unsafe fn init_with_dictionary<'ear>( self, dictionary: &Dictionary<String, Id>, err: *mut Option<&'ear Error>, ) -> Option<R<ArrayBatchProvider>>

Source§

impl Allocated<DictionaryFeatureProvider>

Source

pub unsafe fn init_with_dictionary_err<'ear>( self, dictionary: &Dictionary<String, Id>, err: *mut Option<&'ear Error>, ) -> Option<R<DictionaryFeatureProvider>>

Source§

impl Allocated<FeatureValue>

Source§

impl Allocated<MultiArray>

Source

pub fn init(self) -> Retained<MultiArray>

Source§

impl Allocated<MultiArray>

Source

pub unsafe fn init_with_shape_err<'ear>( self, shape: &Array<Number>, d_type: MultiArrayDType, err: *mut Option<&'ear Error>, ) -> Option<R<MultiArray>>

Source

pub fn init_with_shape_strides( self, shape: &Array<Number>, d_type: MultiArrayDType, strides: &Array<Number>, ) -> R<MultiArray>

Source

pub unsafe fn init_with_ptr<'ear>( self, data_ptr: *mut c_void, shape: &Array<Number>, d_type: MultiArrayDType, strides: &Array<Number>, deallocator: Option<&mut EscBlock<fn(ptr: *mut c_void)>>, error: *mut Option<&'ear Error>, ) -> Option<R<MultiArray>>

Source

pub unsafe fn init_with_pixel_buf_throws( self, pixel_buf: &PixelBuf, shape: &Array<Number>, ) -> R<MultiArray>

Source§

impl Allocated<PredictionOpts>

Source§

impl Allocated<ModelCfg>

Source

pub fn init(self) -> Retained<ModelCfg>

Source§

impl Allocated<Bundle>

Source

pub fn init_with_path(self, path: &String) -> Option<R<Bundle>>

Source§

impl Allocated<Predicate>

Source

pub fn init(self) -> Retained<Predicate>

Source§

impl Allocated<DateFormatter>

Source§

impl Allocated<Iso8601DateFormatter>

Source§

impl Allocated<Port>

Source

pub fn init(self) -> Retained<Port>

Source§

impl Allocated<MachPort>

Source

pub fn init(self) -> Retained<MachPort>

Source§

impl Allocated<UrlRequest>

Source

pub fn init_with_url(self, url: &Url) -> R<UrlRequest>

Source

pub fn init_with_url_cache_policy_timeout( self, url: &Url, cache_policy: CachePolicy, timeout: TimeInterval, ) -> R<UrlRequest>

Source§

impl Allocated<UrlRequestMut>

Source

pub fn init_with_url(self, url: &Url) -> R<UrlRequestMut>

Source

pub fn init_with_url_cache_policy_timeout( self, url: &Url, cache_policy: CachePolicy, timeout: TimeInterval, ) -> R<UrlRequestMut>

Source§

impl Allocated<WebSocketMessage>

Source

pub fn init_with_data(self, data: &Data) -> R<WebSocketMessage>

Source

pub fn init_with_string(self, string: &String) -> R<WebSocketMessage>

Source§

impl Allocated<UrlCache>

Source

pub fn init_with_capacity( self, mem_capacity: usize, disk_capacity: usize, directory_url: Option<&Url>, ) -> R<UrlCache>

Source§

impl Allocated<UserActivity>

Source

pub fn init_with_activity_type(self, activity_type: &String) -> R<UserActivity>

Source§

impl Allocated<UserDefaults>

Source§

impl Allocated<UserDefaults>

Source§

impl Allocated<IndexPath>

Source

pub fn init(self) -> Retained<IndexPath>

Source§

impl Allocated<IndexPath>

Source

pub fn init_with_index(self, index: usize) -> R<IndexPath>

Source

pub fn init_with_indexes( self, indexes: *const usize, lenght: usize, ) -> R<IndexPath>

Source§

impl Allocated<IndexSet>

Source

pub fn init_with_index(self, val: usize) -> R<IndexSet>

Source

pub fn init_with_index_set(self, val: &IndexSet) -> R<IndexSet>

Source

pub fn init_with_range(self, val: Range) -> R<IndexSet>

Source§

impl Allocated<IndexSetMut>

Source§

impl Allocated<IndexSet>

Source

pub fn init(self) -> Retained<IndexSet>

Source§

impl Allocated<IndexSetMut>

Source§

impl<T: Obj> Allocated<Array<T>>

Source

pub fn init_ar(self) -> Rar<Array<T>>

Initializes an empty array.

Source

pub fn init(self) -> R<Array<T>>

Initializes an empty array.

Source

pub unsafe fn init_with_objs(self, ptr: *const &T, count: usize) -> R<Array<T>>

Initializes from a raw pointer to Objective-C object references.

§Safety

ptr must point to count valid references for the duration of the call.

Source§

impl<T: Obj> Allocated<ArrayMut<T>>

Source

pub fn init_with_capacity(self, capacity: usize) -> R<ArrayMut<T>>

Source

pub unsafe fn init_with_objs( &self, ptr: *const &T, count: usize, ) -> R<ArrayMut<T>>

Source§

impl<K: Obj, V: Obj> Allocated<Dictionary<K, V>>

Source

pub fn init_ar(self) -> Rar<Dictionary<K, V>>

Source

pub fn init(self) -> R<Dictionary<K, V>>

Source

pub unsafe fn init_with_objs_for_keys_count_throws( self, objects: *const V, keys: *const K, count: usize, ) -> R<Dictionary<K, V>>

Source§

impl<K: Obj, V: Obj> Allocated<DictionaryMut<K, V>>

Source

pub fn init_ar(self) -> Rar<DictionaryMut<K, V>>

Source

pub fn init(self) -> R<DictionaryMut<K, V>>

Source

pub fn init_with_capacity(self, capacity: usize) -> R<DictionaryMut<K, V>>

Source§

impl<T: Obj> Allocated<Set<T>>

Source

pub fn init_ar(self) -> Rar<Set<T>>

Source

pub fn init(self) -> R<Set<T>>

Source

pub fn init_with_objs_count(self, ptr: *const c_void, count: usize) -> R<Set<T>>

Source§

impl<T: Obj> Allocated<SetMut<T>>

Source

pub fn init_ar(self) -> Rar<SetMut<T>>

Source

pub fn init(self) -> R<SetMut<T>>

Source

pub fn init_with_capacity(self, capacity: usize) -> R<SetMut<T>>

Source§

impl Allocated<Data>

Source

pub fn init(self) -> Retained<Data>

Source§

impl Allocated<DataMut>

Source

pub fn init(self) -> Retained<DataMut>

Source§

impl Allocated<Data>

Source

pub fn init_with_contents_of_file_opts_err<'ear>( self, path: &String, options: ReadOpts, error: *mut Option<&'ear Error>, ) -> Option<R<Data>>

Source

pub fn init_with_contents_of_url_opts_err<'ear>( self, url: &Url, options: ReadOpts, error: *mut Option<&'ear Error>, ) -> Option<R<Data>>

Source

pub fn init_with_bytes(self, bytes: *const u8, length: usize) -> R<Data>

Source§

impl Allocated<Regex>

Source

pub fn init_with_pattern_opts_err<'ear>( self, pattern: &String, opts: Opts, error: *mut Option<&'ear Error>, ) -> Option<R<Regex>>

Source§

impl Allocated<String>

Source

pub fn init(self) -> Retained<String>

Source§

impl Allocated<StringMut>

Source

pub fn init(self) -> Retained<StringMut>

Source§

impl Allocated<String>

Source

pub fn init_with_bytes_length_encoding( self, bytes: *const u8, length: usize, encoding: StringEncoding, ) -> Option<R<String>>

Source

pub fn init_with_bytes_no_copy_length_encoding_free_when_done( self, bytes: *const u8, length: usize, encoding: StringEncoding, free_when_done: bool, ) -> Option<R<String>>

Source§

impl Allocated<StringMut>

Source

pub fn with_capacity(self, capacity: usize) -> R<StringMut>

Source§

impl Allocated<AttrString>

Source

pub fn init(self) -> Retained<AttrString>

Source§

impl Allocated<AttrString>

Source§

impl Allocated<AttrStringMut>

Source§

impl Allocated<AttrStringMut>

Source§

impl Allocated<Url>

Source

pub fn init_with_path_is_dir_relative_to_url_ar( self, path: &String, is_dir: bool, relative_to: Option<&Url>, ) -> Rar<Url>

Source

pub fn init_with_path_is_dir_relative_to_url( self, path: &String, is_dir: bool, relative_to: Option<&Url>, ) -> R<Url>

Source

pub fn init_with_string_relative_to( self, string: &String, relative_to: Option<&Url>, ) -> Option<R<Url>>

Source§

impl Allocated<Uuid>

Source

pub fn init(self) -> Retained<Uuid>

Source§

impl Allocated<RunLoop>

Source

pub fn init(self) -> Retained<RunLoop>

Source§

impl Allocated<Date>

Source

pub fn init(self) -> Retained<Date>

Source§

impl Allocated<Date>

Source§

impl Allocated<Error>

Source

pub fn init_with_domain( self, domain: &ErrorDomain, code: Integer, user_info: Option<&Dictionary<String, Id>>, ) -> R<Error>

Source§

impl Allocated<Thread>

Source

pub fn init(self) -> Retained<Thread>

Source§

impl Allocated<Timer>

Source

pub fn init_with_fire_date_block( self, date: &Date, interval: TimeInterval, repeats: bool, block: &mut SyncBlock<fn(timer: &mut Timer)>, ) -> R<Timer>

Source

pub fn init_with_fire_date_sel( self, date: &Date, interval: TimeInterval, target: &Id, selector: &Sel, user_info: Option<&Id>, repeats: bool, ) -> R<Timer>

Source§

impl Allocated<Notification>

Source

pub fn init_with_name( self, name: &NotificationName, object: Option<&Id>, user_info: Option<&Dictionary<Id, Id>>, ) -> R<Notification>

Source

pub fn init_with_coder(self, coder: &Coder) -> R<Notification>

Source§

impl Allocated<NotificationCenter>

Source§

impl Allocated<OpQueue>

Source

pub fn init(self) -> Retained<OpQueue>

Source§

impl Allocated<Coder>

Source

pub fn init(self) -> Retained<Coder>

Source§

impl Allocated<Locale>

Source

pub fn init_with_locale_id(self, id: &String) -> R<Locale>

Source§

impl<S: Obj, I: Obj> Allocated<DiffableDataSrcSnapshot<S, I>>

Source

pub fn init_ar(self) -> Rar<DiffableDataSrcSnapshot<S, I>>

Source

pub fn init(self) -> R<DiffableDataSrcSnapshot<S, I>>

Source§

impl<T: Obj> Allocated<OrderedCollectionChange<T>>

Source§

impl<T: Obj> Allocated<OrderedCollectionDiff<T>>

Source§

impl Allocated<AnimationCtx>

Source§

impl Allocated<Button>

Source

pub fn init(self) -> Retained<Button>

Source§

impl Allocated<Cell>

Source

pub fn init_text_cell_ar(self, string: &String) -> Rar<Cell>

Source

pub fn init_text_cell(self, string: &String) -> R<Cell>

Source

pub fn init_image_cell_ar(self, image: Option<&Image>) -> Rar<Cell>

Source

pub fn init_image_cell(self, image: Option<&Image>) -> R<Cell>

Source§

impl Allocated<Cell>

Source

pub fn init(self) -> Retained<Cell>

Source§

impl Allocated<CollectionView>

Source§

impl Allocated<CollectionViewItem>

Source§

impl Allocated<ColorSpace>

Source

pub fn init(self) -> Retained<ColorSpace>

Source§

impl Allocated<ColorSpace>

Source§

impl Allocated<Color>

Source

pub fn init(self) -> Retained<Color>

Source§

impl<S: Obj, I: Obj> Allocated<CollectionViewDiffableDataSrc<S, I>>

Source§

impl Allocated<Event>

Source

pub fn init(self) -> Retained<Event>

Source§

impl Allocated<Font>

Source

pub fn init(self) -> Retained<Font>

Source§

impl Allocated<FontManager>

Source§

impl Allocated<GestureRecognizer>

Source

pub fn init_with_target( self, target: Option<&Id>, action: Option<&Sel>, ) -> R<GestureRecognizer>

Source§

impl Allocated<GestureRecognizer>

Source§

impl Allocated<Image>

Source

pub fn init(self) -> Retained<Image>

Source§

impl Allocated<Menu>

Source

pub fn init(self) -> Retained<Menu>

Source§

impl Allocated<Menu>

Source

pub fn init_with_title(self, title: &String) -> R<Menu>

Source§

impl Allocated<Pasteboard>

Source

pub fn init(self) -> Retained<Pasteboard>

Source§

impl Allocated<Responder>

Source

pub fn init(self) -> Retained<Responder>

Source§

impl Allocated<RunningApp>

Source

pub fn init(self) -> Retained<RunningApp>

Source§

impl Allocated<Screen>

Source

pub fn init(self) -> Retained<Screen>

Source§

impl Allocated<SplitViewItem>

Source§

impl Allocated<TextField>

Source

pub fn init(self) -> Retained<TextField>

Source§

impl Allocated<TitlebarAccessoryViewController>

Source§

impl Allocated<ViewController>

Source§

impl Allocated<View>

Source

pub fn init(self) -> Retained<View>

Source§

impl Allocated<View>

Source

pub fn init_with_frame(self, frame: Rect) -> R<View>

Source§

impl Allocated<Toolbar>

Source

pub fn init(self) -> Retained<Toolbar>

Source§

impl Allocated<Toolbar>

Source

pub fn init_with_id(self, id: &ToolbarId) -> R<Toolbar>

Source§

impl Allocated<ToolbarItem>

Source§

impl Allocated<ToolbarItem>

Source§

impl Allocated<StatusBar>

Source

pub fn init(self) -> Retained<StatusBar>

Source§

impl Allocated<WindowController>

Source§

impl Allocated<WindowController>

Source§

impl Allocated<Window>

Source

pub fn init(self) -> Retained<Window>

Source§

impl Allocated<Window>

Source

pub fn init_with_content_rect_style_mask_backing_defer( self, content_rect: Rect, style: WindowStyleMask, backing: BackingStoreType, defer: bool, ) -> R<Window>

Source§

impl Allocated<WorkspaceOpenCfg>

Source§

impl Allocated<Connection>

Source

pub fn init_with_service_name(self, name: &String) -> R<Connection>

Source

pub fn init_with_mach_service( self, name: &String, options: ConnectionOptions, ) -> R<Connection>

Source

pub fn init_with_listener_endpoint( self, endpoint: &ListenerEndpoint, ) -> R<Connection>

Source§

impl Allocated<Listener>

Source

pub fn init_with_mach_service_name(self, name: &String) -> R<Listener>

Source§

impl Allocated<TextAttachment>

Source§

impl Allocated<TextAttachment>

Source

pub fn init_with_data( self, data: Option<&Data>, type_: Option<&String>, ) -> R<TextAttachment>

Source§

impl Allocated<LangRecognizer>

Source§

impl Allocated<Embedding>

Source

pub fn init(self) -> Retained<Embedding>

Source§

impl Allocated<Cfg>

Source

pub fn init(self) -> Retained<Cfg>

Source§

impl Allocated<Cfg>

Source

pub fn init(self) -> Retained<Cfg>

Source§

impl Allocated<ContentFilter>

Source

pub fn init_with_desktop_independent_window( self, window: &Window, ) -> Retained<ContentFilter>

Source

pub fn sel_init_with_desktop_independent_window() -> &'static Sel

@selector(initWithDesktopIndependentWindow:) but dynamic use this function to check if object responds to selector

Source

pub fn init_with_display_excluding_windows( self, display: &Display, windows: &Array<Window>, ) -> Retained<ContentFilter>

Source

pub fn sel_init_with_display_excluding_windows() -> &'static Sel

@selector(initWithDisplay:excludingWindows:) but dynamic use this function to check if object responds to selector

Source

pub fn init_with_display_including_windows( self, display: &Display, windows: &Array<Window>, ) -> Retained<ContentFilter>

Creates a content filter that includes only the specified windows on the given display.

Use this initializer to capture specific windows from a display. Unlike init_with_desktop_independent_window, this method works reliably for all window types including regular application windows.

Source

pub fn sel_init_with_display_including_windows() -> &'static Sel

@selector(initWithDisplay:includingWindows:) but dynamic use this function to check if object responds to selector

Source

pub fn init_with_display_including_apps_excepting_windows( self, display: &Display, apps: &Array<RunningApp>, excepting_windows: &Array<Window>, ) -> Retained<ContentFilter>

Creates a content filter that includes content from the specified applications, optionally excluding specific windows.

Source

pub fn sel_init_with_display_including_apps_excepting_windows() -> &'static Sel

@selector(initWithDisplay:includingApplications:exceptingWindows:) but dynamic use this function to check if object responds to selector

Source

pub fn init_with_display_excluding_apps_excepting_windows( self, display: &Display, apps: &Array<RunningApp>, excepting_windows: &Array<Window>, ) -> Retained<ContentFilter>

Creates a content filter that excludes content from the specified applications, optionally excepting specific windows that should still be included.

Source

pub fn sel_init_with_display_excluding_apps_excepting_windows() -> &'static Sel

@selector(initWithDisplay:excludingApplications:exceptingWindows:) but dynamic use this function to check if object responds to selector

Source§

impl Allocated<Stream>

Source

pub fn init_with_filter_configuration_delegate<D: Delegate>( self, filter: &ContentFilter, configuration: &Cfg, delegate: Option<&D>, ) -> Retained<Stream>

Initializes a stream with a content filter, configuration, and optional delegate.

Source§

impl Allocated<ScreenshotCfg>

Source§

impl Allocated<ScreenshotOutput>

Source§

impl Allocated<RecordingOutputCfg>

Source§

impl Allocated<RecordingOutput>

Source

pub fn init_with_cfg_delegate<D: Delegate>( self, cfg: &RecordingOutputCfg, delegate: &D, ) -> Retained<RecordingOutput>

Initializes a recording output with a configuration and delegate.

Source§

impl Allocated<ClipBufferingOutput>

Source

pub fn sel_init_with_delegate() -> &'static Sel

@selector(initWithDelegate:) but dynamic use this function to check if object responds to selector

Source

pub unsafe fn init_with_delegate<D: Delegate>( self, delegate: Option<&D>, ) -> Retained<ClipBufferingOutput>

Initializes a clip buffering output with an optional delegate.

Source§

impl Allocated<RecordingEditor>

Source

pub fn sel_init_with_url() -> &'static Sel

@selector(initWithURL:) but dynamic use this function to check if object responds to selector

Source

pub unsafe fn init_with_url(self, url: &Url) -> Retained<RecordingEditor>

Initializes an editor for a recording file URL.

Source§

impl Allocated<AudioStreamAnalyzer>

Source§

impl Allocated<AudioStreamAnalyzer>

Source§

impl Allocated<AudioFileAnalyzer>

Source§

impl Allocated<AudioFileAnalyzer>

Source

pub unsafe fn init_with_url_err<'ear>( self, url: &Url, error: *mut Option<&'ear Error>, ) -> Option<R<AudioFileAnalyzer>>

Source§

impl Allocated<Constraint>

Source

pub fn init_with_duration_range( self, duration_range: TimeRange, ) -> R<Constraint>

Source

pub fn init_with_enumerated_durations( self, durations: &Array<Value>, ) -> R<Constraint>

Source§

impl Allocated<ClassifySoundRequest>

Source

pub unsafe fn init_with_classifier_id_err<'ear>( self, id: &Id, err: *mut Option<&'ear Error>, ) -> Option<R<ClassifySoundRequest>>

Source§

impl Allocated<ClassificationResult>

Source§

impl Allocated<NotificationContent>

Source§

impl Allocated<NotificationContentMut>

Source§

impl Allocated<CalcImageAestheticsScoresRequest>

Source§

impl Allocated<CalcImageAestheticsScoresRequest>

Source§

impl Allocated<DetectHorizonRequest>

Source§

impl Allocated<ImageRequestHandler>

Source§

impl Allocated<SequenceRequestHandler>

Source§

impl Allocated<StatefulRequest>

Source

pub fn init_with_frame_analysis_spacing_ch( self, frame_analysis_spacing: Time, ch: Option<&mut RequestCh>, ) -> R<StatefulRequest>

Source§

impl Allocated<RecognizeTextRequest>

Source§

impl Allocated<RecognizeAnimalsRequest>

Source§

impl Allocated<GenForegroundInstanceMaskRequest>

Source§

impl Allocated<GenPersonSegmentationRequest>

Source§

impl Allocated<DetectDocumentSegmentationRequest>

Source§

impl Allocated<GenAttentionBasedSaliencyImageRequest>

Source§

impl Allocated<GenObjectnessBasedSaliencyImageRequest>

Source§

impl Allocated<GenImageFeaturePrintRequest>

Source§

impl Allocated<GenImageFeaturePrintRequest>

Source§

impl Allocated<ClassifyImageRequest>

Source§

impl Allocated<DetectFaceRectanglesRequest>

Source§

impl Allocated<DetectFaceCaptureQualityRequest>

Source§

impl Allocated<DetectBarcodesRequest>

Source§

impl Allocated<FrameRateCadence>

Source

pub fn init_with_frame_rate(self, frame_rate: isize) -> R<FrameRateCadence>

Source§

impl Allocated<TimeIntervalCadence>

Source§

impl Allocated<RequestProcessingOpts>

Source§

impl Allocated<VideoProcessor>

Source

pub fn init_with_url(self, url: &Url) -> R<VideoProcessor>

Source

pub fn sel_init_with_url() -> &'static Sel

@selector(initWithURL:) but dynamic use this function to check if object responds to selector

Source§

impl Allocated<WebView>

Source

pub fn init(self) -> Retained<WebView>

Source§

impl Allocated<WebView>

Source

pub fn init_with_frame_cfg(self, frame: Rect, cfg: &WebViewCfg) -> R<WebView>

Source§

impl Allocated<WebViewCfg>

Source

pub fn init(self) -> Retained<WebViewCfg>

Source§

impl Allocated<ProcessPool>

Source§

impl Allocated<Preferences>

Source§

impl Allocated<UserContentController>

Source§

impl Allocated<UserScript>

Source

pub fn init_with_src_injection_time_for_main_frame_only( self, src: &String, injection_time: UserScriptInjectionTime, for_main_frame_only: bool, ) -> R<UserScript>

Trait Implementations§

Source§

impl<T: Debug + Release + 'static> Debug for Allocated<T>

Source§

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

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

impl<T: Release> Drop for Allocated<T>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more

Auto Trait Implementations§

§

impl<T> !UnwindSafe for Allocated<T>

§

impl<T> Freeze for Allocated<T>

§

impl<T> RefUnwindSafe for Allocated<T>
where T: RefUnwindSafe,

§

impl<T> Send for Allocated<T>
where T: Send,

§

impl<T> Sync for Allocated<T>
where T: Sync,

§

impl<T> Unpin for Allocated<T>

§

impl<T> UnsafeUnpin for Allocated<T>

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