pub struct PixelTexture<'m, 's> { /* private fields */ }Expand description
Borrowed projection of IfcPixelTexture: an explicit width/height/colour raster.
Implementations§
Source§impl<'m, 's> PixelTexture<'m, 's>
impl<'m, 's> PixelTexture<'m, 's>
Sourcepub fn width(&self) -> StyleResult<i64>
pub fn width(&self) -> StyleResult<i64>
The Width attribute in pixels. Mandatory.
Sourcepub fn height(&self) -> StyleResult<i64>
pub fn height(&self) -> StyleResult<i64>
The Height attribute in pixels. Mandatory.
Sourcepub fn colour_components(&self) -> StyleResult<i64>
pub fn colour_components(&self) -> StyleResult<i64>
The ColourComponents attribute: the number of colour channels per pixel. Mandatory.
Sourcepub fn pixel(&self) -> StyleResult<&'m Value>
pub fn pixel(&self) -> StyleResult<&'m Value>
The Pixel attribute: the raw pixel byte list. Mandatory.
Trait Implementations§
Source§impl<'m, 's> Clone for PixelTexture<'m, 's>
impl<'m, 's> Clone for PixelTexture<'m, 's>
Source§fn clone(&self) -> PixelTexture<'m, 's>
fn clone(&self) -> PixelTexture<'m, 's>
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 moreimpl<'m, 's> Copy for PixelTexture<'m, 's>
Auto Trait Implementations§
impl<'m, 's> !RefUnwindSafe for PixelTexture<'m, 's>
impl<'m, 's> !UnwindSafe for PixelTexture<'m, 's>
impl<'m, 's> Freeze for PixelTexture<'m, 's>
impl<'m, 's> Send for PixelTexture<'m, 's>
impl<'m, 's> Sync for PixelTexture<'m, 's>
impl<'m, 's> Unpin for PixelTexture<'m, 's>
impl<'m, 's> UnsafeUnpin for PixelTexture<'m, 's>
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