[][src]Struct objc_foundation::NSData

pub struct NSData { /* fields omitted */ }

Trait Implementations

impl INSData for NSData[src]

fn len(&self) -> usize[src]

fn bytes(&self) -> &[u8][src]

fn with_bytes(bytes: &[u8]) -> Id<Self>[src]

fn from_vec(bytes: Vec<u8>) -> Id<Self>[src]

impl INSObject for NSData[src]

fn hash_code(&self) -> usize[src]

fn is_equal<T>(&self, other: &T) -> bool where
    T: INSObject
[src]

fn description(&self) -> ShareId<NSString>[src]

fn is_kind_of(&self, cls: &Class) -> bool[src]

fn new() -> Id<Self>[src]

impl INSCopying for NSData[src]

type Output = NSData

fn copy(&self) -> ShareId<Self::Output>[src]

impl INSMutableCopying for NSData[src]

type Output = NSMutableData

fn mutable_copy(&self) -> Id<Self::Output>[src]

impl PartialEq<NSData> for NSData[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Eq for NSData[src]

impl Debug for NSData[src]

impl Hash for NSData[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Message for NSData[src]

unsafe fn send_message<A, R>(
    &self,
    sel: Sel,
    args: A
) -> Result<R, MessageError> where
    A: MessageArguments,
    R: Any
[src]

Sends a message to self with the given selector and arguments. Read more

fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError> where
    A: EncodeArguments,
    R: Encode
[src]

Verifies that the argument and return types match the encoding of the method for the given selector. Read more

Auto Trait Implementations

impl Send for NSData

impl Sync for NSData

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]