/// Gives the WebAssembly types that correspond to passing this interface func parameter
/// by reference. Some types are passed by reference using a single pointer, others
/// require both a pointer and length.
Gives the WebAssembly types that correspond to passing this interface func parameter
by reference. Some types are passed by reference using a single pointer, others
require both a pointer and length.
Gives the WebAssembly types that correspond to passing this interface func parameter by reference . Some types are passed by reference using a single pointer others require both a pointer and length .
pub fn pass_by_reference(&self) -> Vec<CoreParamType> {
        match self.tref.type_().passed_by() {
            TypePassedBy::Value(_) | TypePassedBy::Pointer => vec![CoreParamType {
                signifies: CoreParamSignifies::PointerTo,
                param: self.clone(),
            }],
            TypePassedBy::PointerLengthPair => vec![
                CoreParamType {
                    signifies: CoreParamSignifies::PointerTo,
                    param: self.clone(),
                },
                CoreParamType {
                    signifies: CoreParamSignifies::LengthOf,
                    param: self.clone(),
                },
            ],
        }
    }
pub fn pass_by_reference ( & self ) -> Vec < CoreParamType > { match self . tref . type_ ( ) . passed_by ( ) { TypePassedBy :: Value ( _ ) | TypePassedBy :: Pointer => vec ! [ CoreParamType { signifies CoreParamSignifies PointerTo param self clone ( ) } ] , TypePassedBy :: PointerLengthPair => vec ! [ CoreParamType { signifies CoreParamSignifies PointerTo param self clone ( ) } CoreParamType { signifies CoreParamSignifies LengthOf param self clone ( ) } ] , } }
Gives the WebAssembly types that correspond to passing this interface func parameter
by reference.
Gives the WebAssembly types that correspond to passing this interface func parameter by reference .
&self