pub struct Write { /* private fields */ }Implementations§
source§impl Write
impl Write
pub fn new(filepath: &str) -> Self
sourcepub fn set_page(
&mut self,
page: usize,
name: &str,
headers: Vec<Head>,
data: JsonValue
) -> &mut Self
pub fn set_page( &mut self, page: usize, name: &str, headers: Vec<Head>, data: JsonValue ) -> &mut Self
设置数据
- page 1 开始
sourcepub fn set_page_array(
&mut self,
page: usize,
name: &str,
data: JsonValue
) -> &mut Self
pub fn set_page_array( &mut self, page: usize, name: &str, data: JsonValue ) -> &mut Self
设置 自定义样式 数据
- page 1 开始
pub fn set_page_array_image( &mut self, page: usize, name: &str, data: JsonValue ) -> &mut Self
pub fn save(&mut self) -> bool
Auto Trait Implementations§
impl Freeze for Write
impl RefUnwindSafe for Write
impl Send for Write
impl Sync for Write
impl Unpin for Write
impl UnwindSafe for Write
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more