Struct safe_index::examples::clients::Data[][src]

pub struct Data {
    pub clients: Clients<ClientInfo>,
    pub files: Files<FileInfo>,
}
Expand description

Aggregates client and file info.

Fields

clients: Clients<ClientInfo>

Map from client indexes to client information.

files: Files<FileInfo>

Map from file indexes to file information.

Implementations

Constructor.

Adds a client.

Does not add the client again if it’s already there (by name).

Adds a file, updates the clients concerned.

Retrieves information about a file.

Adds a client to a file.

Returns the client equivalence classes.

Two clients are in the same equivalence class if they are associated to the same file, transitively.

Trait Implementations

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

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.