Enum gedcomx::SourceReferenceQualifier [−][src]
#[non_exhaustive] pub enum SourceReferenceQualifier { CharacterRegion, RectangleRegion, TimeRegion, }
Expand description
Source reference qualifiers.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
A region of text in a digital document, in the form of a,b where a is the index of the start character and b is the index of the end character. The meaning of this qualifier is undefined if the source being referenced is not a digital document.
A rectangular region of a digital image. The value of the qualifier is interpreted as a series of four comma-separated numbers. If all of the numbers is less than 1, the value is interpreted in the form of x1,y1,x2,y2 where x1,y1 is the relative percentage-based coordinates of the top-left corner of the rectangle and x2,y2 is the relative percentage-based coordinates of the bottom-right corner of the rectangle. If any of the numbers is more than 1, the value is interpreted in the form of x,y,w,h where x is the point on the X axis of the image in pixels, y is the point on the Y axis in pixels, w is the width of the rectangle in pixels, and h in the height of the rectangle in pixels.
A region of time of a digital audio or video recording, in the form of a,b where a is the starting point in milliseconds and b is the ending point in milliseconds. The meaning of this qualifier is undefined if the source being referenced is not a digital audio or video recording.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for SourceReferenceQualifier
impl Send for SourceReferenceQualifier
impl Sync for SourceReferenceQualifier
impl Unpin for SourceReferenceQualifier
impl UnwindSafe for SourceReferenceQualifier
Blanket Implementations
Mutably borrows from an owned value. Read more