pub struct SnapshotRegion {
pub role: String,
pub level: Option<u8>,
pub row: Option<usize>,
pub column: Option<usize>,
pub label: Option<String>,
pub link: Option<String>,
pub parent: Option<usize>,
pub spans: Vec<[usize; 3]>,
}Expand description
A semantic region, as schema 3 stores it (see
crate::frame::Region): its role name, the role’s numbers, label, link,
parent (an index into the same list) and spans as [row, start, end]
column ranges.
Fields§
§role: String§level: Option<u8>§row: Option<usize>§column: Option<usize>§label: Option<String>§link: Option<String>§parent: Option<usize>§spans: Vec<[usize; 3]>Trait Implementations§
Source§impl Clone for SnapshotRegion
impl Clone for SnapshotRegion
Source§impl Debug for SnapshotRegion
impl Debug for SnapshotRegion
Source§impl<'de> Deserialize<'de> for SnapshotRegion
impl<'de> Deserialize<'de> for SnapshotRegion
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SnapshotRegion
Source§impl PartialEq for SnapshotRegion
impl PartialEq for SnapshotRegion
Source§impl Serialize for SnapshotRegion
impl Serialize for SnapshotRegion
impl StructuralPartialEq for SnapshotRegion
Auto Trait Implementations§
impl Freeze for SnapshotRegion
impl RefUnwindSafe for SnapshotRegion
impl Send for SnapshotRegion
impl Sync for SnapshotRegion
impl Unpin for SnapshotRegion
impl UnsafeUnpin for SnapshotRegion
impl UnwindSafe for SnapshotRegion
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.