Enum caminos_lib::topology::Location[][src]

pub enum Location {
    RouterPort {
        router_index: usize,
        router_port: usize,
    },
    ServerPort(usize),
    None,
}
Expand description

A location where a phit can be inserted. None is used for disconnected ports, for example in the Mesh topology.

Variants

RouterPort

Fields of RouterPort

router_index: usizerouter_port: usize
ServerPort(usize)

Tuple Fields of ServerPort

0: usize
None

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Get the total memory currently being employed by the implementing type. Both stack and heap.

Prints by stdout how much memory is used per component.

Get an estimation on how much memory the type could reach during the simulation.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.