Skip to content

Commit

Permalink
documented transpose function
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Mar 15, 2024
1 parent ddc19db commit a0ec81a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/api/transpose.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@ impl Default for TranspositionSide {
}

pub trait Transposable<'store> {
/// The transpose function maps an annotation, textselection, or textselection set from
/// one coordinate system to another. These mappings are defined in annotations called
/// **transpositions** and are documented here: https://github.com/annotation/stam/blob/master/extensions/stam-transpose/README.md
/// Transpositions link identical textual parts across resources, any annotations within
/// the bounds of such a mapping can then be *transposed* using this function to the other coordinate system.
///
/// The `via` parameter expresses the transposition that is being used.
/// The result of a transpose operation is itself again a transposition.
fn transpose(
&self,
via: &ResultItem<'store, Annotation>,
Expand Down

0 comments on commit a0ec81a

Please sign in to comment.