pub struct Dirfile {
pub dirfile_open: *mut gd_dirfile_,
}Expand description
Represents a wrapper for a DIRFILE, providing methods for interacting with Dirfile data.
Fields§
§dirfile_open: *mut gd_dirfile_Pointer to the opened DIRFILE instance.
Implementations§
Source§impl Dirfile
impl Dirfile
Sourcepub fn field_type(&self, field: &str) -> u32
pub fn field_type(&self, field: &str) -> u32
Sourcepub fn get_data(&self, field: &str) -> Vec<f64>
pub fn get_data(&self, field: &str) -> Vec<f64>
Retrieves the data for a specified field in the Dirfile and converts it to a Vec<f64>.
§Arguments
field- The field name as a string slice.
§Returns
A vector containing the data as f64 values. This is a general-purpose conversion
that may not preserve the original precision of some data types.
§Panics
This function will panic if the field name cannot be converted to a CString.
Auto Trait Implementations§
impl Freeze for Dirfile
impl RefUnwindSafe for Dirfile
impl !Send for Dirfile
impl !Sync for Dirfile
impl Unpin for Dirfile
impl UnwindSafe for Dirfile
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