pub struct Mark {
pub type: String,
pub attrs: Attrs,
}
Expand description
基础标记实现 例如颜色 背景色 批注 @property type 标记类型 @property attrs 标记属性 @author string348040933@qq.com
Fields§
§type: String
§attrs: Attrs
Implementations§
Trait Implementations§
Source§impl<'a> Add<Mark> for MarkRef<'a>
为 MarkRef 实现自定义的 + 运算符,用于添加单个标记
当使用 + 运算符时,会将新标记添加到当前标记的列表中
impl<'a> Add<Mark> for MarkRef<'a>
为 MarkRef 实现自定义的 + 运算符,用于添加单个标记 当使用 + 运算符时,会将新标记添加到当前标记的列表中
Source§impl<'a> BitOr<Mark> for MarkRef<'a>
为 MarkRef 实现自定义的 | 运算符,用于合并标记(去重)
当使用 | 运算符时,会将新标记添加到当前标记列表中,如果标记已存在则不重复添加
impl<'a> BitOr<Mark> for MarkRef<'a>
为 MarkRef 实现自定义的 | 运算符,用于合并标记(去重) 当使用 | 运算符时,会将新标记添加到当前标记列表中,如果标记已存在则不重复添加
Source§impl<'de> Deserialize<'de> for Mark
impl<'de> Deserialize<'de> for Mark
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Mark, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Mark, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Mark
impl Serialize for Mark
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl<'a> Shr<Mark> for MarkRef<'a>
为 MarkRef 实现自定义的 >> 运算符,用于在标记列表末尾添加单个标记
当使用 >> 运算符时,会将新标记添加到当前标记列表的末尾位置
impl<'a> Shr<Mark> for MarkRef<'a>
为 MarkRef 实现自定义的 >> 运算符,用于在标记列表末尾添加单个标记 当使用 >> 运算符时,会将新标记添加到当前标记列表的末尾位置
Source§impl<'a> Sub<Mark> for MarkRef<'a>
为 MarkRef 实现自定义的 - 运算符,用于删除单个标记
当使用 - 运算符时,会从当前标记列表中移除指定的标记
impl<'a> Sub<Mark> for MarkRef<'a>
为 MarkRef 实现自定义的 - 运算符,用于删除单个标记 当使用 - 运算符时,会从当前标记列表中移除指定的标记
impl Eq for Mark
impl StructuralPartialEq for Mark
Auto Trait Implementations§
impl Freeze for Mark
impl RefUnwindSafe for Mark
impl Send for Mark
impl Sync for Mark
impl Unpin for Mark
impl UnwindSafe for Mark
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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