#[non_exhaustive]pub enum Transparency {
ByLayer,
ByBlock,
Percent(u32),
}Expand description
AutoCAD’s transparency of an entity (Style::transparency): 0 to TRANSPARENCY_MAX percent, multiplied into the colour’s alpha (alpha (100 - percent) / 100, rounded); not group compositing: overlapping entities blend each (docs/RENDER2D.md “Transparenz”)
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ByLayer
its layer’s (Layer::transparency)
ByBlock
inside a block its insert’s style’s (that one’s ByLayer: the insert’s layer); outside a block none
Percent(u32)
its own, in percent
Trait Implementations§
Source§impl Clone for Transparency
impl Clone for Transparency
impl Copy for Transparency
Source§impl Debug for Transparency
impl Debug for Transparency
impl Eq for Transparency
Source§impl Hash for Transparency
impl Hash for Transparency
Source§impl PartialEq for Transparency
impl PartialEq for Transparency
impl StructuralPartialEq for Transparency
Auto Trait Implementations§
impl Forget for Transparency
impl Freeze for Transparency
impl Move for Transparency
impl RefUnwindSafe for Transparency
impl Send for Transparency
impl Sync for Transparency
impl Unpin for Transparency
impl UnsafeUnpin for Transparency
impl UnwindSafe for Transparency
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