pub enum BodyNode {
}
Expand description
An enumeration used for utility purposes. You shouldn’t ever need to construct this
directly. Instead you should use one of its member types. These all implement Into
for this type. You can then pass them to a method which accepts and type T
such
that T
satisfies Into
the type of this utility enum (this is an automatically
generated doc comment which is why it doesn’t say Into<type of this enum>
.)
A node which can be mounted to the
tag (or any of its children).
Variants
H1(H1)
H2(H2)
H3(H3)
H4(H4)
H5(H5)
H6(H6)
P(P)
Text(Text)
Form(Form)
Br(Br)
Div(Div)
A(A)
Input(Input)
Label(Label)
Select(Select)
NoScript(NoScript)
Img(Img)
Implementations
sourceimpl BodyNode
impl BodyNode
pub fn as_h1(&self) -> Option<&H1>
pub fn as_h2(&self) -> Option<&H2>
pub fn as_h3(&self) -> Option<&H3>
pub fn as_h4(&self) -> Option<&H4>
pub fn as_h5(&self) -> Option<&H5>
pub fn as_h6(&self) -> Option<&H6>
pub fn as_p(&self) -> Option<&P>
pub fn as_text(&self) -> Option<&Text>
pub fn as_form(&self) -> Option<&Form>
pub fn as_br(&self) -> Option<&Br>
pub fn as_div(&self) -> Option<&Div>
pub fn as_a(&self) -> Option<&A>
pub fn as_input(&self) -> Option<&Input>
pub fn as_label(&self) -> Option<&Label>
pub fn as_select(&self) -> Option<&Select>
pub fn as_no_script(&self) -> Option<&NoScript>
pub fn as_img(&self) -> Option<&Img>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BodyNode
impl Send for BodyNode
impl Sync for BodyNode
impl Unpin for BodyNode
impl UnwindSafe for BodyNode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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