pub struct BufferLayout {
pub len: usize,
pub element_size: usize,
}Fields§
§len: usize§element_size: usizeImplementations§
Trait Implementations§
Source§impl Clone for BufferLayout
impl Clone for BufferLayout
Source§fn clone(&self) -> BufferLayout
fn clone(&self) -> BufferLayout
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BufferLayout
impl Debug for BufferLayout
Source§impl<'de> Deserialize<'de> for BufferLayout
impl<'de> Deserialize<'de> for BufferLayout
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for BufferLayout
impl Hash for BufferLayout
Source§impl IoLoad for BufferLayout
impl IoLoad for BufferLayout
Source§fn load_own_extensions() -> impl Iterator<Item = &'static str>
fn load_own_extensions() -> impl Iterator<Item = &'static str>
fn load_from_bytes_with_own_extension( data: &[u8], path: &str, extension: &str, ) -> Result<Self, IoError>
fn load_from_bytes_with_own_extension_pathless( data: &[u8], extension: &str, ) -> Result<Self, IoErrorKind>
const CAN_BE_LOADED_FROM_TEXT: bool = false
fn load_from_str_with_own_extension( data: &str, path: &str, extension: &str, ) -> Result<Self, IoError>
fn load_from_str_with_own_extension_pathless( data: &str, extension: &str, ) -> Result<Self, IoErrorKind>
Source§fn can_open_own_extension(extension: &str) -> bool
fn can_open_own_extension(extension: &str) -> bool
Don’t include the markup language extension like
json or ronSource§fn load_extensions() -> impl Iterator<Item = &'static str>
fn load_extensions() -> impl Iterator<Item = &'static str>
Also include the markup language extension like
json or ronSource§fn can_open_extension(extension: &str) -> bool
fn can_open_extension(extension: &str) -> bool
Also include the markup language extension like
json or ronfn load_from<Fs>(path: &str, fs: &mut Fs) -> Result<Self, IoError>where
Fs: IoFsRead,
fn load_from_with_extension<Fs>(
path: &str,
extension: &str,
fs: &mut Fs,
) -> Result<Self, IoError>where
Fs: IoFsRead,
Source§impl IoSave for BufferLayout
impl IoSave for BufferLayout
Source§fn save_own_extensions() -> impl Iterator<Item = &'static str>
fn save_own_extensions() -> impl Iterator<Item = &'static str>
fn save_to_with_own_extension<W, Fs>( &self, path: &str, extension: &str, w: W, fs: &mut Fs, ) -> Result<(), IoError>
fn save_to_with_own_extension_pathless<W, Fs>( &self, extension: &str, w: W, fs: &mut Fs, ) -> Result<(), IoErrorKind>
Source§fn save_default_extension() -> Option<&'static str>
fn save_default_extension() -> Option<&'static str>
When saving, if the extension is missing, the file will use this extension by default
Source§fn can_save_own_extension(extension: &str) -> bool
fn can_save_own_extension(extension: &str) -> bool
Don’t include the markup language extension like
json or ronSource§fn save_extensions() -> impl Iterator<Item = &'static str>
fn save_extensions() -> impl Iterator<Item = &'static str>
Also include the markup language extension like
json or ronSource§fn can_save_extension(extension: &str) -> bool
fn can_save_extension(extension: &str) -> bool
Also include the markup language extension like
json or ronfn save_to<Fs>(&self, path: &str, fs: &mut Fs) -> Result<(), IoError>where
Fs: IoFsWrite,
fn save_to_with_extension<Fs>(
&self,
path: &str,
extension: &str,
fs: &mut Fs,
) -> Result<(), IoError>where
Fs: IoFsWrite,
fn save_with_reader<W, Fs>( &self, path: &str, w: W, fs: &mut Fs, ) -> Result<(), IoError>
fn save_with_reader_and_extension<W, Fs>( &self, path: &str, extension: &str, w: W, fs: &mut Fs, ) -> Result<(), IoError>
Source§impl PartialEq for BufferLayout
impl PartialEq for BufferLayout
Source§impl Serialize for BufferLayout
impl Serialize for BufferLayout
impl Copy for BufferLayout
impl Eq for BufferLayout
impl StructuralPartialEq for BufferLayout
Auto Trait Implementations§
impl Freeze for BufferLayout
impl RefUnwindSafe for BufferLayout
impl Send for BufferLayout
impl Sync for BufferLayout
impl Unpin for BufferLayout
impl UnwindSafe for BufferLayout
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<Src, Dest> CastRangeFrom<Dest> for Srcwhere
Dest: CastRangeInto<Src>,
impl<Src, Dest> CastRangeFrom<Dest> for Srcwhere
Dest: CastRangeInto<Src>,
fn cast_range_from(value: Dest) -> Src
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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