Skip to main content

MockStruct

Fields

FieldType
aField
bField

Methods

new

MockStruct::new(a, b);

Parameters

NameType
aField
bField

Standalone Functions

eq

eq(self, other);

Parameters

NameType
self
otherSelf

serialize

serialize(self);

Parameters

NameType
self

deserialize

deserialize(fields);

Parameters

NameType
fields[Field; 2]

test_serde

test_serde();

Takes no parameters.