pub struct Quartz {
pub id: u16,
pub element: u16,
pub cost: [u16; 7],
pub value: [u16; 7],
}Fields§
§id: u16§element: u16§cost: [u16; 7]§value: [u16; 7]Implementations§
source§impl Quartz
impl Quartz
pub fn read_ed6(data: &[u8]) -> Result<Vec<Quartz>, ReadError>
pub fn read_zero(data: &[u8]) -> Result<Vec<Quartz>, ReadError>
pub fn read_ao(data: &[u8]) -> Result<(Vec<Quartz>, Vec<MQuartz>), ReadError>
pub fn write_ed6(table: &[Quartz]) -> Result<Vec<u8>, WriteError>
pub fn write_zero(table: &[Quartz]) -> Result<Vec<u8>, WriteError>
pub fn write_ao(quart: &[Quartz], mq: &[MQuartz]) -> Result<Vec<u8>, WriteError>
Trait Implementations§
source§impl PartialEq<Quartz> for Quartz
impl PartialEq<Quartz> for Quartz
impl Eq for Quartz
impl StructuralEq for Quartz
impl StructuralPartialEq for Quartz
Auto Trait Implementations§
impl RefUnwindSafe for Quartz
impl Send for Quartz
impl Sync for Quartz
impl Unpin for Quartz
impl UnwindSafe for Quartz
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