Enum cpp_to_rust_generator::cpp_method::ReturnValueAllocationPlace [] [src]

pub enum ReturnValueAllocationPlace {
    Stack,
    Heap,
    NotApplicable,
}

Chosen type allocation place for the method

Variants

The method returns a class object by value (or is a constructor), and it's translated to "output" FFI argument and placement new

The method returns a class object by value (or is a constructor), and it's translated to pointer FFI return type and plain new

The method does not return a class object by value, so the direct equivalent of the value is used in FFI.

Trait Implementations

impl Debug for ReturnValueAllocationPlace
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for ReturnValueAllocationPlace
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for ReturnValueAllocationPlace
[src]

impl Clone for ReturnValueAllocationPlace
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Hash for ReturnValueAllocationPlace
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations