Enum BlockType
pub enum BlockType
layer type, specifies block type and deepness.
Variants
-
ScanLine Corresponds to the string value
scanlineimage.-
Tile Corresponds to the string value
tiledimage.-
DeepScanLine Corresponds to the string value
deepscanline.-
DeepTile Corresponds to the string value
deeptile.
Implementations
impl BlockType
fn parse(text: Text) -> Result<Self>Return a
BlockTypeobject from the specified attribute text value.fn write(&self, write: &mut impl Write) -> UnitResultWithout validation, write this instance to the byte stream.
const fn to_text_bytes(&self) -> &[u8]Returns the raw attribute text value this type is represented by in a file.
fn byte_size(&self) -> usizeNumber of bytes this would consume in an exr file.
Trait Implementations
impl Clone for BlockType
fn clone(&self) -> Self
impl Copy for BlockType
impl Debug for BlockType
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for BlockType
impl Hash for BlockType
fn hash<__H: Hasher>(&self, state: &mut __H)
impl PartialEq for BlockType
fn eq(&self, other: &Self) -> bool
impl StructuralPartialEq for BlockType
Auto Trait Implementations
impl Freeze for BlockType
impl RefUnwindSafe for BlockType
impl Send for BlockType
impl Sync for BlockType
impl Unpin for BlockType
impl UnsafeUnpin for BlockType
impl UnwindSafe for BlockType
Blanket Implementations
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for BlockType
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for BlockType
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for BlockType
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for BlockType
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for BlockType
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for BlockType
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for BlockType
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Pointable for BlockType
const ALIGN: usize = _;type Init = T;unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
impl<T> Read<Exclusive, BecauseExclusive> for BlockType
where
T: ?Sized,
impl<T> ToOwned for BlockType
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for BlockType
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for BlockType
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for BlockType
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>