docx-rs/docx-core/src/documents/elements/italic.rs

25 lines
388 B
Rust
Raw Normal View History

2019-11-13 09:08:25 +02:00
use crate::documents::BuildXML;
use crate::xml_builder::*;
#[derive(Debug, Clone)]
pub struct Italic {}
impl Italic {
pub fn new() -> Italic {
Default::default()
}
}
impl Default for Italic {
fn default() -> Self {
Self {}
2019-11-13 09:08:25 +02:00
}
}
impl BuildXML for Italic {
fn build(&self) -> Vec<u8> {
let b = XMLBuilder::new();
b.i().build()
}
}