Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/rust/objc2-foundation/src/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 2 kB image not shown  

Quelle  to_owned.rs

  Sprache: Rust
 

#![allow(unused_imports)]
use alloc::borrow::ToOwned;

use objc2::rc::Retained;
use objc2::Message;

use crate::{NSCopying, NSMutableCopying};

#[cfg(feature = "NSArray")]
impl<ObjectType: Message> ToOwned for crate::NSArray<ObjectType> {
    type Owned = Retained<Self>;
    fn to_owned(&self) -> Self::Owned {
        self.copy()
    }
}

#[cfg(feature = "NSArray")]
impl<ObjectType: Message> ToOwned for crate::NSMutableArray<ObjectType> {
    type Owned = Retained<Self>;
    fn to_owned(&self) -> Self::Owned {
        self.mutableCopy()
    }
}

#[cfg(feature = "NSData")]
impl ToOwned for crate::NSData {
    type Owned = Retained<Self>;
    fn to_owned(&self) -> Self::Owned {
        self.copy()
    }
}

#[cfg(feature = "NSData")]
impl ToOwned for crate::NSMutableData {
    type Owned = Retained<Self>;
    fn to_owned(&self) -> Self::Owned {
        self.mutableCopy()
    }
}

#[cfg(feature = "NSException")]
impl ToOwned for crate::NSException {
    type Owned = Retained<Self>;
    fn to_owned(&self) -> Self::Owned {
        self.copy()
    }
}

#[cfg(feature = "NSSet")]
impl<ObjectType: Message> ToOwned for crate::NSSet<ObjectType> {
    type Owned = Retained<Self>;
    fn to_owned(&self) -> Self::Owned {
        self.copy()
    }
}

#[cfg(feature = "NSSet")]
impl<ObjectType: Message> ToOwned for crate::NSMutableSet<ObjectType> {
    type Owned = Retained<Self>;
    fn to_owned(&self) -> Self::Owned {
        self.mutableCopy()
    }
}

#[cfg(feature = "NSString")]
impl ToOwned for crate::NSString {
    type Owned = Retained<Self>;
    fn to_owned(&self) -> Self::Owned {
        self.copy()
    }
}

#[cfg(feature = "NSString")]
impl ToOwned for crate::NSMutableString {
    type Owned = Retained<Self>;
    fn to_owned(&self) -> Self::Owned {
        self.mutableCopy()
    }
}

#[cfg(feature = "NSAttributedString")]
impl ToOwned for crate::NSAttributedString {
    type Owned = Retained<Self>;
    fn to_owned(&self) -> Self::Owned {
        self.copy()
    }
}

#[cfg(feature = "NSAttributedString")]
impl ToOwned for crate::NSMutableAttributedString {
    type Owned = Retained<Self>;
    fn to_owned(&self) -> Self::Owned {
        self.mutableCopy()
    }
}

#[cfg(feature = "NSUUID")]
impl ToOwned for crate::NSUUID {
    type Owned = Retained<Self>;
    fn to_owned(&self) -> Self::Owned {
        self.copy()
    }
}

#[cfg(feature = "NSValue")]
impl ToOwned for crate::NSValue {
    type Owned = Retained<Self>;
    fn to_owned(&self) -> Self::Owned {
        self.copy()
    }
}

#[cfg(feature = "NSValue")]
impl ToOwned for crate::NSNumber {
    type Owned = Retained<Self>;
    fn to_owned(&self) -> Self::Owned {
        self.copy()
    }
}

Messung V0.5 in Prozent
C=100 H=100 G=100

¤ Dauer der Verarbeitung: 0.14 Sekunden  (vorverarbeitet am  2026-08-25) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.