Struct stam::TransposeConfig

source ·
pub struct TransposeConfig {
    pub source_side: TranspositionSide,
    pub allow_simple: bool,
    pub no_transposition: bool,
    pub transposition_id: Option<String>,
    pub resegmentation_id: Option<String>,
    pub source_side_id: Option<String>,
    pub existing_source_side: bool,
    pub no_resegmentation: bool,
    pub target_side_ids: Vec<String>,
    pub debug: bool,
}

Fields§

§source_side: TranspositionSide§allow_simple: bool

Allow a simple transposition as output, by default this is set to false as we usually want to have an transposed annotation

§no_transposition: bool

Do not produce a transposition annotation, only output the transposed annotation (allow_simple must be set to false) This effectively throws away the provenance information.

§transposition_id: Option<String>

Identifier to assign to the newly outputted transposition (if not set, a random one will be generated)

§resegmentation_id: Option<String>

Identifier to assign to the newly outputted resegmentation (if any is created and this is not set, a random ID will be generated)

§source_side_id: Option<String>

Identifier to assign to the source annotation, if this is an existing one set existing_source_side.

§existing_source_side: bool

Indicates that the source part of the transposition is an existing annotation. This adds some extra constraints as not all existing annotations may be transposable without a resegmentation!

§no_resegmentation: bool

Do not produce a resegmentation annotation. If needed for a complex transposition, a resegmented annotation is still created, but the resegmented version (used as source in the transposition) is not linked to the original source annotation. This effectively throws away provenance information. This only comes into play if no_transposition == false , existing_source_side == true and source_side_id.is_some().

§target_side_ids: Vec<String>

Identifiers to assign to the annotation (if not set, random ones will be generated) The indices correspond to the various sides of the transposition that is being transposed over (in the same order, minus the source)

§debug: bool

Enable debug mode (to stderr)

Trait Implementations§

source§

impl Clone for TransposeConfig

source§

fn clone(&self) -> TransposeConfig

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for TransposeConfig

source§

fn default() -> TransposeConfig

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V