Struct advent_of_code_2021::day_12::Cave[−][src]

struct Cave {
    cave_type: CaveType,
    links: Vec<usize>,
}
Expand description

Represents a node (cave) in the graph (cave system)

Fields

cave_type: CaveType

Determines how many times this cave can be visited in a path

links: Vec<usize>

The indices of the nodes linked to this one by an edge

Trait Implementations

Formats the value using the given formatter. Read more

initialise an unlinked cave, using the cave’s label to determine its type

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

This method tests for !=.

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 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.