pub struct BugDiagram {
pub zones: ZoneLumens,
pub rating: BugRating,
pub total_lumens: f64,
}Expand description
BUG diagram with SVG rendering support
Fields§
§zones: ZoneLumens§rating: BugRating§total_lumens: f64Implementations§
Source§impl BugDiagram
impl BugDiagram
Sourcepub fn from_eulumdat(ldt: &Eulumdat) -> Self
pub fn from_eulumdat(ldt: &Eulumdat) -> Self
Create a BUG diagram from Eulumdat data
Sourcepub fn to_svg(&self, width: f64, height: f64, theme: &SvgTheme) -> String
pub fn to_svg(&self, width: f64, height: f64, theme: &SvgTheme) -> String
Generate SVG for TM-15-11 BUG Rating view
Trait Implementations§
Source§impl Clone for BugDiagram
impl Clone for BugDiagram
Source§fn clone(&self) -> BugDiagram
fn clone(&self) -> BugDiagram
Returns a duplicate of the value. Read more
1.0.0 · 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 BugDiagram
impl RefUnwindSafe for BugDiagram
impl Send for BugDiagram
impl Sync for BugDiagram
impl Unpin for BugDiagram
impl UnsafeUnpin for BugDiagram
impl UnwindSafe for BugDiagram
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