Skip to content

Commit

Permalink
getting fancy with ascii art
Browse files Browse the repository at this point in the history
  • Loading branch information
davedelong committed Mar 7, 2020
1 parent b3a8f00 commit d1aa655
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions Sources/Time/Relations/Relations.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,116 +24,116 @@ public enum Relation: Hashable, CaseIterable {
///
/// - Example: Range `A` is before range `B`:
/// ````
/// --A--
/// --B--
/// --A--
/// --B--
/// ````
case before

/// The first range occurs entirely after the second rage
///
/// - Example: Range `A` is after range `B`:
/// ````
/// --B--
/// --A--
/// --B--
/// --A--
/// ````
case after

/// The first range ends where the second range starts
///
/// - Example: Range `A` meets range `B`:
/// ````
/// --A--
/// --B--
/// --A--
/// --B--
/// ````
case meets

/// The first range starts where the second range ends
///
/// - Example: Range `B` is met by range `A`:
/// ````
/// --B--
/// --A--
/// --B--
/// --A--
/// ````
case isMetBy

/// The first range starts before the second range starts, and ends before the second range ends
///
/// - Example: Range `A` overlaps range `B`:
/// ````
/// --A--
/// --B--
/// --A--
/// --B--
/// ````
case overlaps

/// The first range starts before the second range ends, and ends after the second range ends
/// The first range starts after the second range starts, and ends after the second range ends
///
/// - Example: Range `B` is overlapped by range `A`:
/// ````
/// --B--
/// --A--
/// --B--
/// --A--
/// ````
case isOverlappedBy

/// The first range starts where the second range starts, and ends before the second range ends
///
/// - Example: Range `A` starts range `B`:
/// ````
/// --A--
/// ----B----
/// --A--
/// ----B----
/// ````
case starts

/// The first range starts where the second range starts, and ends after the second range ends
///
/// - Example: Range `A` is started by range `B`:
/// ````
/// --B--
/// ----A----
/// --B--
/// ----A----
/// ````
case isStartedBy

/// The first range starts after the second range starts, and ends before the second range ends
///
/// - Example: Range `A` is during range `B`:
/// ````
/// --A--
/// ----B----
/// --A--
/// ----B----
/// ````
case during

/// The first range starts before the second range starts, and ends after the second range ends
///
/// - Example: Range `A` contains range `B`:
/// ````
/// --B--
/// ----A----
/// --B--
/// ----A----
/// ````
case contains

/// The first range starts after the second range starts, and ends with the second range
///
/// - Example: Range `A` finishes range `B`:
/// ````
/// --A--
/// ----B----
/// --A--
/// ----B----
/// ````
case finishes

/// The first range starts before the second range starts, and ends with the second range
///
/// - Example: Range `A` is finished by range `B`:
/// ````
/// --B--
/// ----A----
/// --B--
/// ----A----
/// ````
case isFinishedBy

/// The first and second ranges start and end together
///
/// - Example: Range `A` equals range `B`:
/// ````
/// ----A----
/// ----B----
/// ----A----
/// ----B----
/// ````
case equal

Expand Down

0 comments on commit d1aa655

Please sign in to comment.