Module typedstream

Module typedstream 

Source
Expand description

Helpers for working with Property types in the Crabstep deserializer.

Structs§

TypeLengthPair
Represents a range pair that contains a type index and a length.

Functions§

as_float
Converts a Property to an Option<f64> if it is an unsigned integer or similar structure.
as_ns_dictionary
Converts a Property to Vec<Property> if it is a NSDictionary
as_nsstring
Converts a Property to an Option<&str> if it is a NSString or similar structure.
as_nsurl
Given a mutable reference to a resolved Property,
walks 2 levels of nested groups under an NSURL→NSString and returns the inner &str.
as_signed_integer
Converts a Property to an Option<i64> if it is a signed integer or similar structure.
as_type_length_pair
Converts a Property to a range pair used to denote a type index and a length
as_unsigned_integer
Converts a Property to an Option<u64> if it is an unsigned integer or similar structure.