Struct savefile::AbiMethodArgument
source · pub struct AbiMethodArgument {
pub schema: Schema,
}
Expand description
The definition of an argument to a method
Fields§
§schema: Schema
The schema (type) of the argument. This contains primarily the on-disk serialized format, but also contains information that can allow savefile-abi to determine if memory layouts are the same.
Trait Implementations§
source§impl Clone for AbiMethodArgument
impl Clone for AbiMethodArgument
source§fn clone(&self) -> AbiMethodArgument
fn clone(&self) -> AbiMethodArgument
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AbiMethodArgument
impl Debug for AbiMethodArgument
source§impl Deserialize for AbiMethodArgument
impl Deserialize for AbiMethodArgument
source§fn deserialize(
deserializer: &mut Deserializer<'_, impl Read>
) -> Result<Self, SavefileError>
fn deserialize( deserializer: &mut Deserializer<'_, impl Read> ) -> Result<Self, SavefileError>
Deserialize and return an instance of Self from the given deserializer.
source§impl Packed for AbiMethodArgument
impl Packed for AbiMethodArgument
source§unsafe fn repr_c_optimization_safe(_version: u32) -> IsPacked
unsafe fn repr_c_optimization_safe(_version: u32) -> IsPacked
This method returns true if the optimization is allowed
for the protocol version given as an argument.
This may return true if and only if the given protocol version
has a serialized format identical to the memory layout of the given protocol version.
Note, the only memory layout existing is that of the most recent version, so
Packed-optimization only works when disk-format is identical to memory version. Read more
source§impl PartialEq for AbiMethodArgument
impl PartialEq for AbiMethodArgument
source§fn eq(&self, other: &AbiMethodArgument) -> bool
fn eq(&self, other: &AbiMethodArgument) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AbiMethodArgument
impl Serialize for AbiMethodArgument
source§fn serialize(
&self,
serializer: &mut Serializer<'_, impl Write>
) -> Result<(), SavefileError>
fn serialize( &self, serializer: &mut Serializer<'_, impl Write> ) -> Result<(), SavefileError>
Serialize self into the given serializer.
In versions prior to 0.15, ‘Serializer’ did not accept a type parameter.
It now requires a type parameter with the type of writer expected.
source§impl WithSchema for AbiMethodArgument
impl WithSchema for AbiMethodArgument
impl StructuralPartialEq for AbiMethodArgument
Auto Trait Implementations§
impl Freeze for AbiMethodArgument
impl RefUnwindSafe for AbiMethodArgument
impl Send for AbiMethodArgument
impl Sync for AbiMethodArgument
impl Unpin for AbiMethodArgument
impl UnwindSafe for AbiMethodArgument
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more