[−][src]Struct scad::ScadFile
Object that stores scad objects along with global parameters for the objects. Also has methods for writing the data to files.
Methods
impl ScadFile
[src]
pub fn new() -> ScadFile
[src]
pub fn get_code(&self) -> String
[src]
Returns the code for the global parameters as well as all the children in the file
pub fn add_object(&mut self, object: ScadObject)
[src]
pub fn set_detail(&mut self, detail: i32)
[src]
Sets the $fn variable for the whole file. This varibale defines the detail amount for cylindrical objects
pub fn write_to_file(&self, path: String) -> bool
[src]
Writes the resulting code to a file
##Arguments
path: The path to the file where we want to write relative to the current working directory.
##Returns The function will return false and print a message to the console if writing fails.
Auto Trait Implementations
impl Sync for ScadFile
impl Send for ScadFile
impl Unpin for ScadFile
impl UnwindSafe for ScadFile
impl RefUnwindSafe for ScadFile
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,