Struct donet_core::dcarray::DCArrayType
source · pub struct DCArrayType {
base_type: Option<DCTypeDefinition>,
element_type: Option<DCTypeDefinition>,
array_size: u16,
array_range: Option<DCNumericRange>,
}
Fields§
§base_type: Option<DCTypeDefinition>
§element_type: Option<DCTypeDefinition>
§array_size: u16
§array_range: Option<DCNumericRange>
Implementations§
source§impl DCArrayType
impl DCArrayType
pub fn new( element_type: Option<DCTypeDefinition>, size: Option<DCNumericRange>, ) -> Self
pub fn get_array_size(&self) -> u16
pub fn get_element_type(&self) -> Option<DCTypeDefinition>
pub fn get_range(&self) -> Option<DCNumericRange>
pub fn has_range(&self) -> bool
Trait Implementations§
source§impl LegacyDCHash for DCArrayType
impl LegacyDCHash for DCArrayType
source§fn generate_hash(&self, hashgen: &mut DCHashGenerator)
fn generate_hash(&self, hashgen: &mut DCHashGenerator)
Accumulates the properties of this DC element into the file hash.
Auto Trait Implementations§
impl Freeze for DCArrayType
impl RefUnwindSafe for DCArrayType
impl Send for DCArrayType
impl Sync for DCArrayType
impl Unpin for DCArrayType
impl UnwindSafe for DCArrayType
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