Skip to main content

Wire

Trait Wire 

Source
pub trait Wire: Sized {
    // Required methods
    fn write(&self, w: &mut Writer<'_>);
    fn read(r: &mut Reader<'_>) -> Option<Self>;
}
Expand description

A value that crosses between wasm instances.

read returns None when the value can’t be read, after it records why in the reader (Reader::fail): an Option takes less code to pass up through the reads of a value’s parts than a Result does.

Required Methods§

Source

fn write(&self, w: &mut Writer<'_>)

Source

fn read(r: &mut Reader<'_>) -> Option<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Wire for ()

Source§

fn write(&self, _: &mut Writer<'_>)

Source§

fn read(_: &mut Reader<'_>) -> Option<()>

Source§

impl Wire for AlignmentType

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<AlignmentType>

Source§

impl Wire for AnchorOffsetPair

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<AnchorOffsetPair>

Source§

impl Wire for Arc<str>

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Arc<str>>

Source§

impl Wire for Array

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Array>

Source§

impl Wire for Box<str>

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Box<str>>

Source§

impl Wire for CanonicalTileID

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<CanonicalTileID>

Source§

impl Wire for Case

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Case>

Source§

impl Wire for CirclePitchScaleType

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<CirclePitchScaleType>

Source§

impl Wire for Color

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Color>

Source§

impl Wire for ColorArray

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<ColorArray>

Source§

impl Wire for ColorRampPropertyValue

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<ColorRampPropertyValue>

Source§

impl Wire for ColorSpace

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<ColorSpace>

Source§

impl Wire for CrossfadeParameters

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<CrossfadeParameters>

Source§

impl Wire for Duration

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Duration>

Source§

impl Wire for DynamicEvaluated

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<DynamicEvaluated>

Source§

impl Wire for DynamicEvaluatedPaint

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<DynamicEvaluatedPaint>

Source§

impl Wire for DynamicPropertyValue

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<DynamicPropertyValue>

Source§

impl Wire for DynamicTransitionable

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<DynamicTransitionable>

Source§

impl Wire for Error

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Error>

Source§

impl Wire for ErrorKind

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<ErrorKind>

Source§

impl Wire for Expr

An expression crosses as its node tree; its dependencies follow from it.

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Expr>

Source§

impl Wire for Filter

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Filter>

Source§

impl Wire for FormatExpression

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<FormatExpression>

Source§

impl Wire for FormatExpressionSection

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<FormatExpressionSection>

Source§

impl Wire for FormatSectionOverride

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<FormatSectionOverride>

Source§

impl Wire for Formatted

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Formatted>

Source§

impl Wire for FormattedSection

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<FormattedSection>

Source§

impl Wire for HillshadeIlluminationAnchorType

Source§

impl Wire for HillshadeMethodType

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<HillshadeMethodType>

Source§

impl Wire for IconOverlapType

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<IconOverlapType>

Source§

impl Wire for IconTextFitType

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<IconTextFitType>

Source§

impl Wire for Identifier

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Identifier>

Source§

impl Wire for Image

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Image>

Source§

impl Wire for ImageContent

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<ImageContent>

Source§

impl Wire for ImageExpression

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<ImageExpression>

Source§

impl Wire for Interpolate

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Interpolate>

Source§

impl Wire for Interpolator

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Interpolator>

Source§

impl Wire for LatLng

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<LatLng>

Source§

impl Wire for LayerBase

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<LayerBase>

Source§

impl Wire for LayerBlendType

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<LayerBlendType>

Source§

impl Wire for LightAnchorType

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<LightAnchorType>

Source§

impl Wire for LineCapType

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<LineCapType>

Source§

impl Wire for LineJoinType

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<LineJoinType>

Source§

impl Wire for Match

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Match>

Source§

impl Wire for NoProperties

Source§

fn write(&self, _w: &mut Writer<'_>)

Source§

fn read(_r: &mut Reader<'_>) -> Option<NoProperties>

Source§

impl Wire for NonZero<u8>

As the integer, which can’t be zero.

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<NonZero<u8>>

Source§

impl Wire for NonZero<u16>

As the integer, which can’t be zero.

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<NonZero<u16>>

Source§

impl Wire for NonZero<u32>

As the integer, which can’t be zero.

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<NonZero<u32>>

Source§

impl Wire for NonZero<u64>

As the integer, which can’t be zero.

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<NonZero<u64>>

Source§

impl Wire for NonZero<usize>

As the integer, which can’t be zero.

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<NonZero<usize>>

Source§

impl Wire for NumberArray

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<NumberArray>

Source§

impl Wire for OverrideDefault

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<OverrideDefault>

Source§

impl Wire for Padding

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Padding>

Source§

impl Wire for Position

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Position>

Source§

impl Wire for PossiblyEvaluated

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<PossiblyEvaluated>

Source§

impl Wire for PossiblyEvaluated

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<PossiblyEvaluated>

Source§

impl Wire for PossiblyEvaluated

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<PossiblyEvaluated>

Source§

impl Wire for PossiblyEvaluated

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<PossiblyEvaluated>

Source§

impl Wire for PossiblyEvaluated

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<PossiblyEvaluated>

Source§

impl Wire for PossiblyEvaluated

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<PossiblyEvaluated>

Source§

impl Wire for PossiblyEvaluated

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<PossiblyEvaluated>

Source§

impl Wire for PossiblyEvaluated

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<PossiblyEvaluated>

Source§

impl Wire for PossiblyEvaluated

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<PossiblyEvaluated>

Source§

impl Wire for PossiblyEvaluated

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<PossiblyEvaluated>

Source§

impl Wire for PossiblyEvaluated

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<PossiblyEvaluated>

Source§

impl Wire for PossiblyEvaluated

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<PossiblyEvaluated>

Source§

impl Wire for PossiblyEvaluated

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<PossiblyEvaluated>

Source§

impl Wire for PossiblyEvaluated

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<PossiblyEvaluated>

Source§

impl Wire for PossiblyEvaluated

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<PossiblyEvaluated>

Source§

impl Wire for PossiblyEvaluated

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<PossiblyEvaluated>

Source§

impl Wire for PossiblyEvaluated

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<PossiblyEvaluated>

Source§

impl Wire for ProjectionDefinition

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<ProjectionDefinition>

Source§

impl Wire for ProjectionType

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<ProjectionType>

Source§

impl Wire for PromoteId

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<PromoteId>

Source§

impl Wire for PropertyExpressionBase

Crosses as the expression (shared, see wire.rs) and what was set on it; the flags are derived from the expression again.

Not inlined: every PropertyExpression<T>, PropertyValue<T> and Evaluated<T> reads and writes one, so inlined it would compile once per value type.

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<PropertyExpressionBase>

Source§

impl Wire for RasterEncoding

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<RasterEncoding>

Source§

impl Wire for RasterResamplingType

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<RasterResamplingType>

Source§

impl Wire for ResamplingType

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<ResamplingType>

Source§

impl Wire for RotateAnchorType

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<RotateAnchorType>

Source§

impl Wire for Rotation

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Rotation>

Source§

impl Wire for Size

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Size>

Source§

impl Wire for Step

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Step>

Source§

impl Wire for Stops

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Stops>

Source§

impl Wire for String

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<String>

Source§

impl Wire for StyleImage

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<StyleImage>

Source§

impl Wire for SubdivisionGranularityExpression

Source§

impl Wire for SubdivisionGranularitySetting

Source§

impl Wire for SymbolAnchorType

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<SymbolAnchorType>

Source§

impl Wire for SymbolHeightAnchorType

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<SymbolHeightAnchorType>

Source§

impl Wire for SymbolPlacementType

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<SymbolPlacementType>

Source§

impl Wire for SymbolZOrderType

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<SymbolZOrderType>

Source§

impl Wire for TextFit

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<TextFit>

Source§

impl Wire for TextJustifyType

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<TextJustifyType>

Source§

impl Wire for TextRotationAlignmentType

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<TextRotationAlignmentType>

Source§

impl Wire for TextTransformType

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<TextTransformType>

Source§

impl Wire for TextWritingModeType

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<TextWritingModeType>

Source§

impl Wire for TransitionOptions

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<TransitionOptions>

Source§

impl Wire for Transitionable

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Transitionable>

Source§

impl Wire for Transitionable

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Transitionable>

Source§

impl Wire for Transitionable

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Transitionable>

Source§

impl Wire for Transitionable

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Transitionable>

Source§

impl Wire for Transitionable

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Transitionable>

Source§

impl Wire for Transitionable

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Transitionable>

Source§

impl Wire for Transitionable

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Transitionable>

Source§

impl Wire for Transitionable

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Transitionable>

Source§

impl Wire for Transitionable

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Transitionable>

Source§

impl Wire for Transitionable

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Transitionable>

Source§

impl Wire for Transitionable

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Transitionable>

Source§

impl Wire for Transitionable

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Transitionable>

Source§

impl Wire for TranslateAnchorType

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<TranslateAnchorType>

Source§

impl Wire for Type

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Type>

Source§

impl Wire for Unevaluated

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Unevaluated>

Source§

impl Wire for Unevaluated

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Unevaluated>

Source§

impl Wire for Unevaluated

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Unevaluated>

Source§

impl Wire for Unevaluated

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Unevaluated>

Source§

impl Wire for Unevaluated

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Unevaluated>

Source§

impl Wire for Value

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Value>

Source§

impl Wire for Value

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Value>

Source§

impl Wire for VariableAnchorOffsetCollection

Source§

impl Wire for Vec2

Available on crate feature glam only.
Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Vec2>

Source§

impl Wire for VerticalAlign

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<VerticalAlign>

Source§

impl Wire for VisibilityType

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<VisibilityType>

Source§

impl Wire for WorldMapping

A mapping crosses as the name of its registered projection, or none for Mercator’s, and the reading side takes the mapping that the StyleRegistry in its context has by that name.

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<WorldMapping>

Source§

impl Wire for bool

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<bool>

Source§

impl Wire for char

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<char>

Source§

impl Wire for f32

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<f32>

Source§

impl Wire for f64

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<f64>

Source§

impl Wire for i8

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<i8>

Source§

impl Wire for i16

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<i16>

Source§

impl Wire for i32

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<i32>

Source§

impl Wire for i64

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<i64>

Source§

impl Wire for isize

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<isize>

Source§

impl Wire for u8

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<u8>

Source§

impl Wire for u16

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<u16>

Source§

impl Wire for u32

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<u32>

Source§

impl Wire for u64

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<u64>

Source§

impl Wire for usize

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<usize>

Source§

impl<A, B, C, D> Wire for (A, B, C, D)
where A: Wire, B: Wire, C: Wire, D: Wire,

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<(A, B, C, D)>

Source§

impl<A, B, C> Wire for (A, B, C)
where A: Wire, B: Wire, C: Wire,

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<(A, B, C)>

Source§

impl<A, B> Wire for (A, B)
where A: Wire, B: Wire,

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<(A, B)>

Source§

impl<A> Wire for (A,)
where A: Wire,

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<(A,)>

Source§

impl<K, V, S> Wire for HashMap<K, V, S>
where K: Wire + Eq + Hash, V: Wire, S: BuildHasher + Default,

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<HashMap<K, V, S>>

Source§

impl<K, V> Wire for BTreeMap<K, V>
where K: Wire + Ord, V: Wire,

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<BTreeMap<K, V>>

Source§

impl<K, V> Wire for VecMap<K, V>
where K: Wire + Ord, V: Wire,

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<VecMap<K, V>>

Source§

impl<M> Wire for Image<M>
where M: AlphaMode,

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Image<M>>

Source§

impl<T, P> Wire for Feature<T, P>
where T: CoordNum + Wire, P: Wire,

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Feature<T, P>>

Source§

impl<T, S> Wire for HashSet<T, S>
where T: Wire + Eq + Hash, S: BuildHasher + Default,

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<HashSet<T, S>>

Source§

impl<T, const N: usize> Wire for [T; N]
where T: Wire + Default + Copy,

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<[T; N]>

Source§

impl<T> Wire for Arc<T>
where T: Wire,

In full: values that cross once and then by key opt in with shared.

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Arc<T>>

Source§

impl<T> Wire for BTreeSet<T>
where T: Wire + Ord,

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<BTreeSet<T>>

Source§

impl<T> Wire for Box<T>
where T: Wire,

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Box<T>>

Source§

impl<T> Wire for Box<[T]>
where T: Wire,

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Box<[T]>>

Source§

impl<T> Wire for Coord<T>
where T: CoordNum + Wire,

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Coord<T>>

Source§

impl<T> Wire for Evaluated<T>
where T: Wire,

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Evaluated<T>>

Source§

impl<T> Wire for Faded<T>
where T: Wire,

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Faded<T>>

Source§

impl<T> Wire for Geometry<T>
where T: CoordNum + Wire,

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Geometry<T>>

Source§

impl<T> Wire for LayerStyle<T>
where T: StyleLayerType,

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<LayerStyle<T>>

Source§

impl<T> Wire for LineString<T>
where T: CoordNum + Wire,

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<LineString<T>>

Source§

impl<T> Wire for Mutex<RawMutex, T>
where T: Wire,

Available on crate feature parking_lot only.

The value behind the lock, which writing locks.

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Mutex<RawMutex, T>>

Source§

impl<T> Wire for Option<T>
where T: Wire,

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Option<T>>

Source§

impl<T> Wire for PhantomData<T>
where T: ?Sized,

Source§

fn write(&self, _: &mut Writer<'_>)

Source§

fn read(_: &mut Reader<'_>) -> Option<PhantomData<T>>

Source§

impl<T> Wire for Point<T>
where T: CoordNum + Wire,

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Point<T>>

Source§

impl<T> Wire for Point<T>
where T: Wire,

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Point<T>>

Source§

impl<T> Wire for Polygon<T>
where T: CoordNum + Wire,

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Polygon<T>>

Source§

impl<T> Wire for PropertyExpression<T>
where T: Wire,

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<PropertyExpression<T>>

Source§

impl<T> Wire for PropertyValue<T>
where T: Wire,

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<PropertyValue<T>>

Source§

impl<T> Wire for Range<T>
where T: Wire,

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Range<T>>

Source§

impl<T> Wire for RwLock<RawRwLock, T>
where T: Wire,

Available on crate feature parking_lot only.

The value behind the lock, which writing locks.

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<RwLock<RawRwLock, T>>

Source§

impl<T> Wire for Vec<T>
where T: Wire,

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Vec<T>>

Source§

impl<T> Wire for VecSet<T>
where T: Wire + Ord,

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<VecSet<T>>

Source§

impl<V> Wire for Transitionable<V>
where V: Wire,

Source§

fn write(&self, w: &mut Writer<'_>)

Source§

fn read(r: &mut Reader<'_>) -> Option<Transitionable<V>>

Implementors§

Source§

impl Wire for DrawRange

Source§

impl Wire for DynamicBucket

Source§

impl Wire for DynamicPaintBinders

Source§

impl Wire for DynamicPropertyBinder

Source§

impl Wire for DynamicVertexStream

Source§

impl Wire for FeatureIndex

An index crosses, for a tile worker in another wasm instance (tile/worker_codec), without its tile data, which the side that reads it has (it sent it) and sets (set_data).

Source§

impl Wire for FontFace

Source§

impl Wire for Glyph

Source§

impl Wire for GlyphAdjust

Source§

impl Wire for GlyphDependencies

Source§

impl Wire for GlyphFont

Source§

impl Wire for GlyphID

Source§

impl Wire for GlyphMetrics

Source§

impl Wire for GlyphPosition

Source§

impl Wire for ImagePosition

Source§

impl Wire for ImageType

Source§

impl Wire for IndexedSubfeature

Source§

impl Wire for InterleavedVertexBuffer

Source§

impl Wire for InterleavedVertexData

Source§

impl Wire for MapMode

Source§

impl Wire for OverscaledTileID

Source§

impl Wire for RectU16

Source§

impl Wire for ShapedText

Source§

impl Wire for TileData

Source§

impl<P> Wire for LayerBinders<P>
where P: Wire,

Source§

impl<T: Pod> Wire for GeometryVec<T>

As the plain values’ bytes (payload::pod). Workers send buckets before the render thread moves anything out. A payload the host kept in JS stays there (mln_wire::host_bytes).

Source§

impl<T> Wire for CrossFadedPaintPropertyBinder<T>
where T: Wire,

Source§

impl<T> Wire for PaintPropertyBinder<T>
where T: Wire,