/// The relative depth of a Wasm branching target.
#[derive(Debug, Copy, Clone)]
pub struct RelativeDepth(u32);
impl RelativeDepth {
/// Returns the relative depth as `u32`.
pub fn into_u32(self) -> u32 {
self.0
}
/// Creates a relative depth from the given `u32` value.
pub fn from_u32(relative_depth: u32) -> Self {
Self(relative_depth)
}
}