pub struct TextSpanRef {
pub id: AnnotationId,
pub span: TextSpan,
}Expand description
Data type for text span ref.
Fields§
§id: AnnotationIdIdentifier for this value.
span: TextSpanThe span value.
Trait Implementations§
Source§impl Clone for TextSpanRef
impl Clone for TextSpanRef
Source§fn clone(&self) -> TextSpanRef
fn clone(&self) -> TextSpanRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TextSpanRef
Source§impl Debug for TextSpanRef
impl Debug for TextSpanRef
Source§impl<'de> Deserialize<'de> for TextSpanRef
impl<'de> Deserialize<'de> for TextSpanRef
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 TextSpanRef
Source§impl PartialEq for TextSpanRef
impl PartialEq for TextSpanRef
Source§fn eq(&self, other: &TextSpanRef) -> bool
fn eq(&self, other: &TextSpanRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TextSpanRef
impl Serialize for TextSpanRef
impl StructuralPartialEq for TextSpanRef
Auto Trait Implementations§
impl Freeze for TextSpanRef
impl RefUnwindSafe for TextSpanRef
impl Send for TextSpanRef
impl Sync for TextSpanRef
impl Unpin for TextSpanRef
impl UnsafeUnpin for TextSpanRef
impl UnwindSafe for TextSpanRef
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