pub struct SectionExporter {
pub section: Section,
pub properties: Option<SectionProperties>,
pub material: Option<Material>,
pub designation: Option<String>,
}Expand description
Export a section to multiple formats.
Fields§
§section: Section§properties: Option<SectionProperties>§material: Option<Material>§designation: Option<String>Implementations§
Source§impl SectionExporter
impl SectionExporter
pub fn new(section: Section) -> Self
pub fn with_properties(self, props: SectionProperties) -> Self
pub fn with_material(self, material: Material) -> Self
pub fn with_designation(self, designation: String) -> Self
Sourcepub fn to_dxf(&self, options: DxfExportOptions) -> String
pub fn to_dxf(&self, options: DxfExportOptions) -> String
Export to DXF string.
Sourcepub fn to_csv(&self, options: CsvExportOptions) -> String
pub fn to_csv(&self, options: CsvExportOptions) -> String
Export to CSV string.
Sourcepub fn to_svg(&self, options: SvgExportOptions) -> String
pub fn to_svg(&self, options: SvgExportOptions) -> String
Export to SVG string.
Auto Trait Implementations§
impl Forget for SectionExporter
impl Freeze for SectionExporter
impl Move for SectionExporter
impl RefUnwindSafe for SectionExporter
impl Send for SectionExporter
impl Sync for SectionExporter
impl Unpin for SectionExporter
impl UnsafeUnpin for SectionExporter
impl UnwindSafe for SectionExporter
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