Expand description
§Mélodium core crate
Core Mélodium components for compiled libraries.
This crate is aimed to be used by compiled Mélodium libraries,
in conjuction with melodium-macro.
Core Mélodium types are exposed here, and base descriptors
for built-in elements are provided within the descriptor module.
Look at the Mélodium crate or the Mélodium Project for more detailed information.
§Features
doc(disabled by default): enables documentation management of elements, when disableddocumentationandset_documentationfunctions will still be present but respectively return empty string and do nothing.
Re-exports§
pub use melodium_common as common;
Modules§
Structs§
- Erased
Serde Error - Error when a
SerializerorDeserializertrait object fails. - Lazy
- A value which is initialized on the first access.
- VecDeque
- A double-ended queue implemented with a growable ring buffer.
Enums§
- Packed
Array - A contiguous,
Arc-shared array of one primitive scalar type. - Transmission
Value - Value
Traits§
- Data
- Data
Trait - Deserialize
- A data structure that can be deserialized from any data format supported by Serde.
- Erased
Serialize - An object-safe equivalent of Serde’s
Serializetrait. - Erased
Serializer - An object-safe equivalent of Serde’s
Serializertrait. - GetData
- Trait allowing to get real data based on Rust type.
- Input
Ext - Pairs
recv_one/recv_manywith a typed cast, so a mismatch between what a graph wired up and what a treatment expects surfaces asTransmissionError::TypeMismatchinstead of requiring every call site to.unwrap()aGetData/TryIntocast by hand (and panic the track on a mismatch). Blanket-implemented for everyInput. - Output
Ext - Pairs
send_one/send_manywith the ordinaryInto<Value>/From<Vec<T>>conversions, so a treatment sending a plain Rust value never has to nameValue/TransmissionValueitself — symmetric withInputExt::recv_one_as/recv_many_as. Blanket-implemented for everyOutput. - Serialize
- A data structure that can be serialized into any data format supported by Serde.
Functions§
- erased_
deserialize - Deserialize a value of type
Tfrom the given trait object.