mtl-foundation 1.0.0

Foundation framework bindings (NSObject, NSString, NSArray, etc.)
docs.rs failed to build mtl-foundation-1.0.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

Foundation framework bindings for Rust.

This crate provides Rust bindings to Apple's Foundation framework, corresponding to the C++ headers in metal-cpp/Foundation/.

Overview

The Foundation framework provides fundamental classes for Objective-C programming, including:

  • Basic types: [Integer], [UInteger], [TimeInterval]
  • Objects: [Object], [String], [Array], [Dictionary], [Data]
  • Numbers: [Number], [Value]
  • Error handling: [Error]
  • URL handling: [Url]
  • Memory management: [SharedPtr], [AutoreleasePool]
  • System info: [ProcessInfo], [Bundle]

C++ Correspondence

This crate provides 1:1 correspondence with the metal-cpp Foundation headers:

C++ Header Rust Module
NSTypes.hpp [types]
NSObjCRuntime.hpp [objc_runtime]
NSRange.hpp [range]
NSObject.hpp [object]
NSSharedPtr.hpp [shared_ptr]
NSString.hpp [string]
NSArray.hpp [array]
NSDictionary.hpp [dictionary]
NSSet.hpp [set]
NSData.hpp [data]
NSNumber.hpp [number]
NSDate.hpp [date]
NSError.hpp [error]
NSURL.hpp [url]
NSEnumerator.hpp [enumerator]
NSAutoreleasePool.hpp [autorelease]
NSNotification.hpp [notification]
NSLock.hpp [lock]
NSBundle.hpp [bundle]
NSProcessInfo.hpp [process_info]