pub struct Writer<'a> { /* private fields */ }Implementations§
Source§impl<'a> Writer<'a>
impl<'a> Writer<'a>
pub fn new(model: &'a StepModel) -> Self
pub fn emit_all(self) -> String
Sourcepub fn emit_all_with_plan(
self,
dropped: &HashSet<EntityKey>,
rename: HashMap<EntityKey, &'static str>,
) -> String
pub fn emit_all_with_plan( self, dropped: &HashSet<EntityKey>, rename: HashMap<EntityKey, &'static str>, ) -> String
Per-schema emit: dropped EntityKeys are skipped (never numbered/rendered),
rename overrides the keyword (downgrade). Caller (projection) guarantees
the kept set is referentially closed, so no survivor refs a dropped id.
Auto Trait Implementations§
impl<'a> Freeze for Writer<'a>
impl<'a> RefUnwindSafe for Writer<'a>
impl<'a> Send for Writer<'a>
impl<'a> Sync for Writer<'a>
impl<'a> Unpin for Writer<'a>
impl<'a> UnsafeUnpin for Writer<'a>
impl<'a> UnwindSafe for Writer<'a>
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