#[non_exhaustive]pub enum LayerKind {
Show 13 variants
Root,
Paper,
StoryInfo,
Folder,
FrameFolder,
Raster,
Vector,
Text,
Gradient,
Correction,
ImageMaterial,
ThreeD,
Other,
}Expand description
What a layer is. Derived from LayerType, LayerFolder and which
optional columns are filled (no single column holds it).
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.
Root
The root folder (LayerType 256), not shown in CSP.
Paper
用紙 (LayerType 1584).
StoryInfo
Comic story info / nombre text (LayerType 800).
Folder
A folder (LayerFolder bit 0).
FrameFolder
コマ枠フォルダー: a folder with ComicFrameLineMipmap.
Raster
Pixel layer (LayerType bit 0).
Vector
Vector layer: has a VectorObjectList row (or the vector index columns when nothing is drawn).
Text
Text layer (TextLayerString).
Gradient
Gradient or fill layer (GradationFillInfo).
Correction
Tone-correction layer (FilterLayerInfo, LayerType bit 12).
ImageMaterial
Image material (ResizableImageInfo).
ThreeD
3D layer (FirstLayerObject).
Other
Something else (e.g. a ruler-only layer).
Implementations§
Trait Implementations§
impl Copy for LayerKind
impl Eq for LayerKind
impl StructuralPartialEq for LayerKind
Auto Trait Implementations§
impl Freeze for LayerKind
impl RefUnwindSafe for LayerKind
impl Send for LayerKind
impl Sync for LayerKind
impl Unpin for LayerKind
impl UnsafeUnpin for LayerKind
impl UnwindSafe for LayerKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.