pub trait StyleSourceType:
Sized
+ Send
+ Sync
+ 'static {
type Options: Clone + Send + Sync + 'static;
const INFO: SourceTypeInfo;
// Provided method
fn from_json(
_value: &Convertible<'_>,
_functions: &Arc<Functions>,
error: &mut Error,
) -> Option<SourceData<Self>> { ... }
}Expand description
A source type’s style half: its name, what its sources hold and how style JSON describes them.
Required Associated Constants§
const INFO: SourceTypeInfo
Required Associated Types§
Provided Methods§
Sourcefn from_json(
_value: &Convertible<'_>,
_functions: &Arc<Functions>,
error: &mut Error,
) -> Option<SourceData<Self>>
fn from_json( _value: &Convertible<'_>, _functions: &Arc<Functions>, error: &mut Error, ) -> Option<SourceData<Self>>
The data of a source from its style JSON value, whose expressions
parse against functions. Only a type whose INFO
has from_json is asked.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".