Trait rustpython_literal::escape::Escape
source · pub trait Escape {
// Required methods
fn source_len(&self) -> usize;
fn layout(&self) -> &EscapeLayout;
fn write_source(&self, formatter: &mut impl Write) -> Result;
fn write_body_slow(&self, formatter: &mut impl Write) -> Result;
// Provided methods
fn changed(&self) -> bool { ... }
fn write_body(&self, formatter: &mut impl Write) -> Result { ... }
}
Required Methods§
fn source_len(&self) -> usize
fn layout(&self) -> &EscapeLayout
fn write_source(&self, formatter: &mut impl Write) -> Result
fn write_body_slow(&self, formatter: &mut impl Write) -> Result
Provided Methods§
Object Safety§
This trait is not object safe.