Struct tui_markup_renderer::parser::MarkupParser
source · [−]pub struct MarkupParser {
pub path: String,
pub failed: bool,
pub error: Option<String>,
pub root: Option<Rc<RefCell<MarkupElement>>>,
}
Fields
path: String
failed: bool
error: Option<String>
root: Option<Rc<RefCell<MarkupElement>>>
Implementations
sourceimpl MarkupParser
impl MarkupParser
pub fn get_element(node: Option<Rc<RefCell<MarkupElement>>>) -> MarkupElement
pub fn is_widget(node_name: &str) -> bool
pub fn is_layout(node_name: &str) -> bool
pub fn get_border(border: String) -> Borders
pub fn get_constraint(constraint: String) -> Constraint
pub fn get_direction(node: &MarkupElement) -> Direction
pub fn get_alignment(node: &MarkupElement) -> Alignment
pub fn get_styles(node: &MarkupElement) -> Style
pub fn render_ui<B: Backend>(&self, frame: &mut Frame<'_, B>)
pub fn new(path: String) -> MarkupParser
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for MarkupParser
impl !Send for MarkupParser
impl !Sync for MarkupParser
impl Unpin for MarkupParser
impl !UnwindSafe for MarkupParser
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more