static text
This commit is contained in:
+11
-11
@@ -104,17 +104,6 @@ pub enum Children {
|
||||
Children(Vec<Element>, usize),
|
||||
}
|
||||
|
||||
impl std::fmt::Debug for Children {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
f.write_str(&match self {
|
||||
Self::None => String::new(),
|
||||
Self::Children(a, b) => format!("({b}, {a:?})"),
|
||||
Self::Text(a) => format!("{:?}", a()),
|
||||
Self::StaticText(a) => format!("{a:?}"),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/// Implementations
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
@@ -209,6 +198,17 @@ impl Default for Children {
|
||||
}
|
||||
}
|
||||
|
||||
impl std::fmt::Debug for Children {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
f.write_str(&match self {
|
||||
Self::None => String::new(),
|
||||
Self::Children(a, b) => format!("({b}, {a:?})"),
|
||||
Self::Text(a) => format!("{:?}", a()),
|
||||
Self::StaticText(a) => format!("static({a:?})"),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
impl Children {
|
||||
pub fn is_none(&self) -> bool {
|
||||
match self {
|
||||
|
||||
Reference in New Issue
Block a user