Struct library_of_babel::Address[][src]

pub struct Address {
    pub hex: String,
    pub wall: u8,
    pub shelf: u8,
    pub volume: u8,
    pub page: u16,
}
Expand description

Struct containing Address to a page in a book on a shelf in the wall in the hex room

Fields

hex: String

Hex room

wall: u8

Wall

shelf: u8

Shelf

volume: u8

Volume/Book

page: u16

Page

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Parse str address from str to Address

Errors

This fn() returns Error if the Address is wrong

Panics

This fn() panics if you put in bigger numbers than they can hold

The associated error which can be returned from parsing.

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.

Converts the given value to a String. 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.