pub struct NetworkBuilder { /* private fields */ }

Implementations

Add an activity to the network.

The reference and description of the activity will be set to reference. The minimum_duration, expected_duration and maximum_duration will all be set to duration. The start_type will be set to StartType::Earliest and the duration_type will be set to DurationType::Expected.

Removes an activity and all edges associated with it

Add a customised activity to the network.

This method is for creating activities with differing durations, start types or duration types.

network_builder.add_extended_activity("develop",
                                      "Develop System",
                                      1.0, 3.0, 5.0,
                                      StartType::Earliest,
                                      DurationType::Expected)?;

Connect two activities together

// a -> b -> c
network_builder.connect("a", "b")?;
network_builder.connect("b", "c")?;

Trait Implementations

Returns the “default value” for a type. Read more
Converts to this type from the input type.
Converts to this type from the input type.
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.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.