pub struct TypeInfo {
pub count: usize,
pub attrs: BTreeSet<String>,
pub children: BTreeSet<String>,
pub text: bool,
}Expand description
What a document walk observed about one node type — the facts behind
Y::Lexical#node_types / Y::ProseMirror#node_types, the discovery aid
for writing rules against a real document.
Fields§
§count: usize§attrs: BTreeSet<String>§children: BTreeSet<String>§text: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for TypeInfo
impl RefUnwindSafe for TypeInfo
impl Send for TypeInfo
impl Sync for TypeInfo
impl Unpin for TypeInfo
impl UnsafeUnpin for TypeInfo
impl UnwindSafe for TypeInfo
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