[−][src]Struct ice_rs::slice::writer::Writer
Implementations
impl Writer
[src]
pub fn new(file: File) -> Writer
[src]
pub fn write(
&mut self,
content: &str,
indent: usize
) -> Result<(), Box<dyn Error>>
[src]
&mut self,
content: &str,
indent: usize
) -> Result<(), Box<dyn Error>>
pub fn blank_line(&mut self) -> Result<(), Box<dyn Error>>
[src]
pub fn generate_use(
&mut self,
crate_name: &str,
indent: usize
) -> Result<(), Box<dyn Error>>
[src]
&mut self,
crate_name: &str,
indent: usize
) -> Result<(), Box<dyn Error>>
pub fn generate_mod(
&mut self,
mod_name: &str,
indent: usize
) -> Result<(), Box<dyn Error>>
[src]
&mut self,
mod_name: &str,
indent: usize
) -> Result<(), Box<dyn Error>>
pub fn generate_typedef(
&mut self,
id: &str,
var_type: &str,
indent: usize
) -> Result<(), Box<dyn Error>>
[src]
&mut self,
id: &str,
var_type: &str,
indent: usize
) -> Result<(), Box<dyn Error>>
pub fn generate_close_block(
&mut self,
indent: usize
) -> Result<(), Box<dyn Error>>
[src]
&mut self,
indent: usize
) -> Result<(), Box<dyn Error>>
pub fn generate_enum_open(
&mut self,
id: &str,
indent: usize
) -> Result<(), Box<dyn Error>>
[src]
&mut self,
id: &str,
indent: usize
) -> Result<(), Box<dyn Error>>
pub fn generate_struct_open(
&mut self,
id: &str,
indent: usize
) -> Result<(), Box<dyn Error>>
[src]
&mut self,
id: &str,
indent: usize
) -> Result<(), Box<dyn Error>>
pub fn generate_trait_open(
&mut self,
id: &str,
derived: Option<&str>,
indent: usize
) -> Result<(), Box<dyn Error>>
[src]
&mut self,
id: &str,
derived: Option<&str>,
indent: usize
) -> Result<(), Box<dyn Error>>
pub fn generate_struct_member(
&mut self,
id: &str,
vartype: &str,
indent: usize
) -> Result<(), Box<dyn Error>>
[src]
&mut self,
id: &str,
vartype: &str,
indent: usize
) -> Result<(), Box<dyn Error>>
pub fn generate_enum_variant(
&mut self,
id: &str,
value: i32,
indent: usize
) -> Result<(), Box<dyn Error>>
[src]
&mut self,
id: &str,
value: i32,
indent: usize
) -> Result<(), Box<dyn Error>>
pub fn generate_impl(
&mut self,
impl_trait: Option<&str>,
object: &str,
indent: usize
) -> Result<(), Box<dyn Error>>
[src]
&mut self,
impl_trait: Option<&str>,
object: &str,
indent: usize
) -> Result<(), Box<dyn Error>>
pub fn generate_fn(
&mut self,
public: bool,
generic: Option<String>,
fn_name: &str,
arguments: Vec<String>,
return_type: Option<&str>,
is_impl: bool,
indent: usize
) -> Result<(), Box<dyn Error>>
[src]
&mut self,
public: bool,
generic: Option<String>,
fn_name: &str,
arguments: Vec<String>,
return_type: Option<&str>,
is_impl: bool,
indent: usize
) -> Result<(), Box<dyn Error>>
pub fn generate_to_bytes_impl(
&mut self,
object: &str,
lines: Vec<String>,
indent: usize
) -> Result<(), Box<dyn Error>>
[src]
&mut self,
object: &str,
lines: Vec<String>,
indent: usize
) -> Result<(), Box<dyn Error>>
pub fn generate_from_bytes_impl(
&mut self,
object: &str,
lines: Vec<String>,
pre_read: Option<Vec<String>>,
indent: usize
) -> Result<(), Box<dyn Error>>
[src]
&mut self,
object: &str,
lines: Vec<String>,
pre_read: Option<Vec<String>>,
indent: usize
) -> Result<(), Box<dyn Error>>
pub fn generate_derive(
&mut self,
traits: Vec<&str>,
indent: usize
) -> Result<(), Box<dyn Error>>
[src]
&mut self,
traits: Vec<&str>,
indent: usize
) -> Result<(), Box<dyn Error>>
pub fn generate_optional_type(
&mut self,
object: &str,
result: u8,
indent: usize
) -> Result<(), Box<dyn Error>>
[src]
&mut self,
object: &str,
result: u8,
indent: usize
) -> Result<(), Box<dyn Error>>
Auto Trait Implementations
impl RefUnwindSafe for Writer
[src]
impl Send for Writer
[src]
impl Sync for Writer
[src]
impl Unpin for Writer
[src]
impl UnwindSafe for Writer
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,