Struct objc::Encoding [−][src]
pub struct Encoding { /* fields omitted */ }
An Objective-C type encoding.
For more information, see Apple's documentation: https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/ObjCRuntimeGuide/Articles/ocrtTypeEncodings.html
Methods
impl Encoding
[src]
impl Encoding
pub unsafe fn from_str(code: &str) -> Encoding
[src]
pub unsafe fn from_str(code: &str) -> Encoding
Constructs an Encoding
from its string representation.
Unsafe because the caller must ensure the string is a valid encoding.
pub fn as_str(&self) -> &str
[src]
pub fn as_str(&self) -> &str
Returns self as a str
.
Trait Implementations
impl Clone for Encoding
[src]
impl Clone for Encoding
fn clone(&self) -> Encoding
[src]
fn clone(&self) -> Encoding
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Encoding
[src]
impl PartialEq for Encoding
fn eq(&self, other: &Encoding) -> bool
[src]
fn eq(&self, other: &Encoding) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Debug for Encoding
[src]
impl Debug for Encoding