pub struct ElementInfo {
pub tag_name: String,
pub attr_name: Option<String>,
pub text_type: TextType,
pub priority: u8,
}Expand description
HTML元素信息
在HTML翻译过程中使用的元素信息。
Fields§
§tag_name: String元素标签名
attr_name: Option<String>属性名(如果是属性翻译)
text_type: TextType文本类型
priority: u8优先级
Implementations§
Trait Implementations§
Source§impl Clone for ElementInfo
impl Clone for ElementInfo
Source§fn clone(&self) -> ElementInfo
fn clone(&self) -> ElementInfo
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ElementInfo
impl RefUnwindSafe for ElementInfo
impl Send for ElementInfo
impl Sync for ElementInfo
impl Unpin for ElementInfo
impl UnwindSafe for ElementInfo
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