pub enum Error {
Io {
io_error: Error,
path: PathBuf,
},
Image {
image_error: ImageError,
path: PathBuf,
},
IsNotDirectory {
path: PathBuf,
},
NonUnicodePath {
path: PathBuf,
},
ConflictingIdentifiers {
a: PathBuf,
b: PathBuf,
identifier: String,
},
FilenameNotValidRustIdentifier {
path: PathBuf,
},
MissingExtension {
path: PathBuf,
},
UnsupportedExtension {
path: PathBuf,
extension: String,
},
}Expand description
Build errors
Variantsยง
Io
IO error
Image
Image decoding error
IsNotDirectory
The argument to pxl_build::build was not a directory
NonUnicodePath
Indicates that a path could not be converted to unicode.
Since pxl_build generates rust modules and statics with
names derived from their paths, their paths must be valid
unicode.
ConflictingIdentifiers
Indicates that two resources mapped to identical identifiers in the same module.
For example, resources/PLAYER.png and resources/player.png
will both have the identifier PLAYER, and will trigger
this error.
Fields
FilenameNotValidRustIdentifier
Indicates that a filename contained characters that are not allowed inside of rust identifiers.
Filename stems must match [a-zA-Z][a-zA-Z0-9_-]*.
MissingExtension
Indicates that a resource filenmae had no extension.
UnsupportedExtension
Indicates a filename had an unsupported extension.
See the readme for supported extensions and filetypes.
Trait Implementationsยง
Auto Trait Implementationsยง
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementationsยง
Sourceยงimpl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
Sourceยงfn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
Sourceยงfn adapt_into(self) -> D
fn adapt_into(self) -> D
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
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more