Type Alias kitsune_p2p_dht::spacetime::SpaceSegment
source · pub type SpaceSegment = Segment<SpaceOffset>;
Expand description
Alias
Aliased Type§
struct SpaceSegment {
pub power: u8,
pub offset: SpaceOffset,
}
Fields§
§power: u8
The exponent, where length = 2^power
offset: SpaceOffset
The offset from the origin, measured in number of lengths
Implementations§
source§impl SpaceSegment
impl SpaceSegment
sourcepub fn loc_bounds(&self, topo: &Topology) -> (Loc, Loc)
pub fn loc_bounds(&self, topo: &Topology) -> (Loc, Loc)
Get the start and end bounds, in absolute Loc coordinates, for this segment