Struct livemod::Namespaced [−][src]
pub struct Namespaced<T> {
pub name: Vec<String>,
pub parameters: LinkedHashMap<String, Parameter<T>>,
// some fields omitted
}
Expand description
A namespaced value in the LiveMod message transfer system
This consists of a namespace, a name, and a set of labelled parameters encoding information for the type. Namespaces should start with the crate name which defines the type, and all parts of a namespaced name must only contain characters valid in a rust crate name ([A-Za-z_-])
Fields
name: Vec<String>
parameters: LinkedHashMap<String, Parameter<T>>
Implementations
pub fn deserialize(
s: &mut dyn Iterator<Item = u8>
) -> Result<Namespaced<T>, DeserializeError>
pub fn basic_structure_repr(
name: &str,
fields: &[(String, Namespaced<Repr>)]
) -> Namespaced<Repr>
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl<T> RefUnwindSafe for Namespaced<T> where
T: RefUnwindSafe,
impl<T> Send for Namespaced<T> where
T: Send,
impl<T> Sync for Namespaced<T> where
T: Sync,
impl<T> Unpin for Namespaced<T> where
T: Unpin,
impl<T> UnwindSafe for Namespaced<T> where
T: UnwindSafe + RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more