pub struct GdsLibraryBuilder { /* private fields */ }Expand description
Builder for GdsLibrary.
Implementations§
Source§impl GdsLibraryBuilder
impl GdsLibraryBuilder
pub fn version<VALUE: Into<i16>>(&mut self, value: VALUE) -> &mut Self
pub fn create_date<VALUE: Into<GdsDateTime>>( &mut self, value: VALUE, ) -> &mut Self
pub fn modify_date<VALUE: Into<GdsDateTime>>( &mut self, value: VALUE, ) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn usrunits_per_dbunit<VALUE: Into<f64>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn usrunits_per_dbunit<VALUE: Into<f64>>( &mut self, value: VALUE, ) -> &mut Self
The size of a database unit in user units. 1 database unit = xx user unit default = 0.001
Sourcepub fn meters_per_dbunit<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn meters_per_dbunit<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
The size of a database unit in meters. 1 database unit = xx meter default = 1e-9
pub fn reflibs<VALUE: Into<[String; 2]>>(&mut self, value: VALUE) -> &mut Self
pub fn fonts<VALUE: Into<[String; 4]>>(&mut self, value: VALUE) -> &mut Self
pub fn attrtable<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn generations<VALUE: Into<i16>>(&mut self, value: VALUE) -> &mut Self
pub fn format<VALUE: Into<GdsFormat>>(&mut self, value: VALUE) -> &mut Self
pub fn structures<VALUE: Into<HashMap<String, Arc<RwLock<GdsStructure>>>>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn build(&self) -> Result<GdsLibrary, GdsLibraryBuilderError>
pub fn build(&self) -> Result<GdsLibrary, GdsLibraryBuilderError>
Trait Implementations§
Source§impl Clone for GdsLibraryBuilder
impl Clone for GdsLibraryBuilder
Source§fn clone(&self) -> GdsLibraryBuilder
fn clone(&self) -> GdsLibraryBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GdsLibraryBuilder
impl RefUnwindSafe for GdsLibraryBuilder
impl Send for GdsLibraryBuilder
impl Sync for GdsLibraryBuilder
impl Unpin for GdsLibraryBuilder
impl UnsafeUnpin for GdsLibraryBuilder
impl UnwindSafe for GdsLibraryBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more