Struct freebsd_geom::Geom [−][src]
A Geom
is the essential object in a GEOM graph.
It has a name
and “rank
” (a computed depth of the tree containing this geom). It can
represent a disk (GeomClass::DISK
), or partition (GeomClass::PART
), or /dev
device node
(GeomClass::DEV
), as well as several other classes.
A geom may have some associated metadata
(e.g., PART
geoms).
A geom is related to other geoms in a tree. In this library, we call edges from child to parent geoms “outedges” and edges from parent geoms to child geoms “inedges”. In other GEOM documentation they are called “consumers” and “providers,” respectively.
Fields
class: GeomClass
name: String
The Geom
’s name, such as “ada0”. Caveat: geom names are not unique.
rank: u64
The height of this Geom
in its tree. For example, a Geom
at the root of a tree will
have rank
equal to 1
.
metadata: Option<Box<PartMetadata>>
If this Geom
is GeomClass::PART
, some additional metadata.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Geom
impl Send for Geom
impl Sync for Geom
impl Unpin for Geom
impl UnwindSafe for Geom
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,