#[repr(C)]
pub struct _PedDiskOps {
Show 28 fields pub probe: Option<unsafe extern "C" fn(dev: *const PedDevice) -> c_int>, pub clobber: Option<unsafe extern "C" fn(dev: *mut PedDevice) -> c_int>, pub alloc: Option<unsafe extern "C" fn(dev: *const PedDevice) -> *mut PedDisk>, pub duplicate: Option<unsafe extern "C" fn(disk: *const PedDisk) -> *mut PedDisk>, pub free: Option<unsafe extern "C" fn(disk: *mut PedDisk)>, pub read: Option<unsafe extern "C" fn(disk: *mut PedDisk) -> c_int>, pub write: Option<unsafe extern "C" fn(disk: *const PedDisk) -> c_int>, pub disk_set_flag: Option<unsafe extern "C" fn(disk: *mut PedDisk, flag: PedDiskFlag, state: c_int) -> c_int>, pub disk_get_flag: Option<unsafe extern "C" fn(disk: *const PedDisk, flag: PedDiskFlag) -> c_int>, pub disk_is_flag_available: Option<unsafe extern "C" fn(disk: *const PedDisk, flag: PedDiskFlag) -> c_int>, pub partition_new: Option<unsafe extern "C" fn(disk: *const PedDisk, part_type: PedPartitionType, fs_type: *const PedFileSystemType, start: PedSector, end: PedSector) -> *mut PedPartition>, pub partition_duplicate: Option<unsafe extern "C" fn(part: *const PedPartition) -> *mut PedPartition>, pub partition_destroy: Option<unsafe extern "C" fn(part: *mut PedPartition)>, pub partition_set_system: Option<unsafe extern "C" fn(part: *mut PedPartition, fs_type: *const PedFileSystemType) -> c_int>, pub partition_set_flag: Option<unsafe extern "C" fn(part: *mut PedPartition, flag: PedPartitionFlag, state: c_int) -> c_int>, pub partition_get_flag: Option<unsafe extern "C" fn(part: *const PedPartition, flag: PedPartitionFlag) -> c_int>, pub partition_is_flag_available: Option<unsafe extern "C" fn(part: *const PedPartition, flag: PedPartitionFlag) -> c_int>, pub partition_set_name: Option<unsafe extern "C" fn(part: *mut PedPartition, name: *const c_char)>, pub partition_get_name: Option<unsafe extern "C" fn(part: *const PedPartition) -> *const c_char>, pub partition_align: Option<unsafe extern "C" fn(part: *mut PedPartition, constraint: *const PedConstraint) -> c_int>, pub partition_enumerate: Option<unsafe extern "C" fn(part: *mut PedPartition) -> c_int>, pub partition_check: Option<unsafe extern "C" fn(part: *const PedPartition) -> bool>, pub alloc_metadata: Option<unsafe extern "C" fn(disk: *mut PedDisk) -> c_int>, pub get_max_primary_partition_count: Option<unsafe extern "C" fn(disk: *const PedDisk) -> c_int>, pub get_max_supported_partition_count: Option<unsafe extern "C" fn(disk: *const PedDisk, supported: *mut c_int) -> bool>, pub get_partition_alignment: Option<unsafe extern "C" fn(disk: *const PedDisk) -> *mut PedAlignment>, pub max_length: Option<unsafe extern "C" fn() -> PedSector>, pub max_start_sector: Option<unsafe extern "C" fn() -> PedSector>,
}

Fields§

§probe: Option<unsafe extern "C" fn(dev: *const PedDevice) -> c_int>§clobber: Option<unsafe extern "C" fn(dev: *mut PedDevice) -> c_int>§alloc: Option<unsafe extern "C" fn(dev: *const PedDevice) -> *mut PedDisk>§duplicate: Option<unsafe extern "C" fn(disk: *const PedDisk) -> *mut PedDisk>§free: Option<unsafe extern "C" fn(disk: *mut PedDisk)>§read: Option<unsafe extern "C" fn(disk: *mut PedDisk) -> c_int>§write: Option<unsafe extern "C" fn(disk: *const PedDisk) -> c_int>§disk_set_flag: Option<unsafe extern "C" fn(disk: *mut PedDisk, flag: PedDiskFlag, state: c_int) -> c_int>§disk_get_flag: Option<unsafe extern "C" fn(disk: *const PedDisk, flag: PedDiskFlag) -> c_int>§disk_is_flag_available: Option<unsafe extern "C" fn(disk: *const PedDisk, flag: PedDiskFlag) -> c_int>§partition_new: Option<unsafe extern "C" fn(disk: *const PedDisk, part_type: PedPartitionType, fs_type: *const PedFileSystemType, start: PedSector, end: PedSector) -> *mut PedPartition>§partition_duplicate: Option<unsafe extern "C" fn(part: *const PedPartition) -> *mut PedPartition>§partition_destroy: Option<unsafe extern "C" fn(part: *mut PedPartition)>§partition_set_system: Option<unsafe extern "C" fn(part: *mut PedPartition, fs_type: *const PedFileSystemType) -> c_int>§partition_set_flag: Option<unsafe extern "C" fn(part: *mut PedPartition, flag: PedPartitionFlag, state: c_int) -> c_int>§partition_get_flag: Option<unsafe extern "C" fn(part: *const PedPartition, flag: PedPartitionFlag) -> c_int>§partition_is_flag_available: Option<unsafe extern "C" fn(part: *const PedPartition, flag: PedPartitionFlag) -> c_int>§partition_set_name: Option<unsafe extern "C" fn(part: *mut PedPartition, name: *const c_char)>§partition_get_name: Option<unsafe extern "C" fn(part: *const PedPartition) -> *const c_char>§partition_align: Option<unsafe extern "C" fn(part: *mut PedPartition, constraint: *const PedConstraint) -> c_int>§partition_enumerate: Option<unsafe extern "C" fn(part: *mut PedPartition) -> c_int>§partition_check: Option<unsafe extern "C" fn(part: *const PedPartition) -> bool>§alloc_metadata: Option<unsafe extern "C" fn(disk: *mut PedDisk) -> c_int>§get_max_primary_partition_count: Option<unsafe extern "C" fn(disk: *const PedDisk) -> c_int>§get_max_supported_partition_count: Option<unsafe extern "C" fn(disk: *const PedDisk, supported: *mut c_int) -> bool>§get_partition_alignment: Option<unsafe extern "C" fn(disk: *const PedDisk) -> *mut PedAlignment>§max_length: Option<unsafe extern "C" fn() -> PedSector>§max_start_sector: Option<unsafe extern "C" fn() -> PedSector>

Trait Implementations§

source§

impl Clone for _PedDiskOps

source§

fn clone(&self) -> _PedDiskOps

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for _PedDiskOps

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for _PedDiskOps

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.