Struct php_codegen::body::Body
source ยท pub struct Body {
pub factory: Option<Box<dyn Fn(Indentation, usize) -> String>>,
pub semicolon_for_empty: bool,
}
Fieldsยง
ยงfactory: Option<Box<dyn Fn(Indentation, usize) -> String>>
ยงsemicolon_for_empty: bool
Implementationsยง
sourceยงimpl Body
impl Body
pub fn new() -> Self
pub fn with_factory<T: Fn(Indentation, usize) -> String + 'static>( factory: T, ) -> Self
pub fn with_semicolon_for_empty(self, semicolon_for_empty: bool) -> Self
Trait Implementationsยง
Auto Trait Implementationsยง
impl Freeze for Body
impl !RefUnwindSafe for Body
impl !Send for Body
impl !Sync for Body
impl Unpin for Body
impl !UnwindSafe for Body
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