pub struct LocatedData<'s> {
pub segment: Option<(&'s str, usize, &'s Segment)>,
pub field: Option<(NonZeroUsize, &'s Field)>,
pub repeat: Option<(NonZeroUsize, &'s Repeat)>,
pub component: Option<(NonZeroUsize, &'s Component)>,
pub sub_component: Option<(NonZeroUsize, &'s SubComponent)>,
}
Expand description
Results from locating a cursor within a message
Fields§
§segment: Option<(&'s str, usize, &'s Segment)>
The (segment ID, segment ID repeat # (0-based), and segment) containing the cursor
field: Option<(NonZeroUsize, &'s Field)>
The (1-based field ID, field) containing the cursor
repeat: Option<(NonZeroUsize, &'s Repeat)>
The (1-based repeat ID, repeat) containing the cursor
component: Option<(NonZeroUsize, &'s Component)>
The (1-based component ID, component) containing the cursor
sub_component: Option<(NonZeroUsize, &'s SubComponent)>
The (1-based sub-component ID, sub-component) containing the cursor
Trait Implementations§
Source§impl<'s> Clone for LocatedData<'s>
impl<'s> Clone for LocatedData<'s>
Source§fn clone(&self) -> LocatedData<'s>
fn clone(&self) -> LocatedData<'s>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'s> Debug for LocatedData<'s>
impl<'s> Debug for LocatedData<'s>
Source§impl<'s> Display for LocatedData<'s>
impl<'s> Display for LocatedData<'s>
Source§impl<'l> From<&LocatedData<'l>> for LocationQuery
impl<'l> From<&LocatedData<'l>> for LocationQuery
Source§fn from(value: &LocatedData<'_>) -> Self
fn from(value: &LocatedData<'_>) -> Self
Converts to this type from the input type.
Source§impl<'l> From<LocatedData<'l>> for LocationQuery
impl<'l> From<LocatedData<'l>> for LocationQuery
Source§fn from(value: LocatedData<'_>) -> Self
fn from(value: LocatedData<'_>) -> Self
Converts to this type from the input type.
Source§impl<'s> PartialEq for LocatedData<'s>
impl<'s> PartialEq for LocatedData<'s>
Source§impl<'s> Serialize for LocatedData<'s>
impl<'s> Serialize for LocatedData<'s>
impl<'s> Eq for LocatedData<'s>
impl<'s> StructuralPartialEq for LocatedData<'s>
Auto Trait Implementations§
impl<'s> Freeze for LocatedData<'s>
impl<'s> RefUnwindSafe for LocatedData<'s>
impl<'s> Send for LocatedData<'s>
impl<'s> Sync for LocatedData<'s>
impl<'s> Unpin for LocatedData<'s>
impl<'s> UnwindSafe for LocatedData<'s>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.