Skip to main content

BlobTextureDraft

Struct BlobTextureDraft 

Source
#[non_exhaustive]
pub struct BlobTextureDraft<'a> { pub repeat_s: bool, pub repeat_t: bool, pub mode: Option<&'a str>, pub texture_transform: Option<EntityId>, pub parameter: &'a [&'a str], pub raster_format: &'a str, pub raster_code: &'a str, }
Expand description

Attributes of an IfcBlobTexture.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§repeat_s: bool

RepeatS: whether the texture tiles along S.

§repeat_t: bool

RepeatT: whether the texture tiles along T.

§mode: Option<&'a str>

Mode: the texture application mode.

§texture_transform: Option<EntityId>

TextureTransform: a 2D operator applied to the coordinates.

§parameter: &'a [&'a str]

Parameter: optional, but non-empty when present.

§raster_format: &'a str

RasterFormat: one of BMP, JPG, GIF, PNG.

§raster_code: &'a str

RasterCode: the hex payload, a whole number of bytes.

Implementations§

Source§

impl<'a> BlobTextureDraft<'a>

Source

pub fn new(raster_format: &'a str, raster_code: &'a str) -> Self

Starts a draft from its required raster_format, raster_code; every other field is unset.

Source

pub fn repeat_s(self, value: bool) -> Self

Sets repeat_s.

RepeatS: whether the texture tiles along S.

Source

pub fn repeat_t(self, value: bool) -> Self

Sets repeat_t.

RepeatT: whether the texture tiles along T.

Source

pub fn mode(self, value: &'a str) -> Self

Sets mode.

Mode: the texture application mode.

Source

pub fn texture_transform(self, value: EntityId) -> Self

Sets texture_transform.

TextureTransform: a 2D operator applied to the coordinates.

Source

pub fn parameter(self, value: &'a [&'a str]) -> Self

Sets parameter.

Parameter: optional, but non-empty when present.

Trait Implementations§

Source§

impl<'a> Clone for BlobTextureDraft<'a>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Copy for BlobTextureDraft<'a>

Source§

impl<'a> Debug for BlobTextureDraft<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Default for BlobTextureDraft<'a>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for BlobTextureDraft<'a>

§

impl<'a> RefUnwindSafe for BlobTextureDraft<'a>

§

impl<'a> Send for BlobTextureDraft<'a>

§

impl<'a> Sync for BlobTextureDraft<'a>

§

impl<'a> Unpin for BlobTextureDraft<'a>

§

impl<'a> UnsafeUnpin for BlobTextureDraft<'a>

§

impl<'a> UnwindSafe for BlobTextureDraft<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.