Skip to content

Understanding Data Types for Rinf Signals (e.g., primitives, DateTime, custom types) #578

Answered by temeddix
erflaber asked this question in Q&A
Discussion options

You must be logged in to vote
  • Rinf uses Bincode serialization under the hood. Rinf currently supports most of the standard types that Bincode does:
    • Signed Integers: i8, i16, i32, i64, i128
    • Unsigned Integers: u8, u16, u32, u64, u128
    • Floating-Point Numbers: f32, f64
    • Texts: char, String, &str
    • Boolean: bool
    • Sequences: [T; N], Vec<T>, HashSet<T>, BTreeSet<T>
    • Maps: HashMap<K, V>, BTreeMap<K, V>
    • Standard Library Types: Option<T>, Box<T>
    • Tuple Types: ()..(T1, T2, T3, T4)
    • C-Style Enums
    • Enums with Inner Data
  • Unfortunately, the current status of Rinf does not allow using things like #[serde(with = "...")]). It would be nice to have such a feature, but because rinf gen analyzes Rust code statically (by reading type annotation…

Replies: 5 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@temeddix
Comment options

@erflaber
Comment options

@brongan
Comment options

@temeddix
Comment options

Answer selected by erflaber
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants