pub struct ModuleType(/* private fields */);Expand description
Represents the module type of the VersionRequirement
Implementations§
Source§impl ModuleType
impl ModuleType
Sourcepub const fn new() -> ModuleType
pub const fn new() -> ModuleType
Creates a new ModuleType.
Sourcepub const fn create(val: u32) -> ModuleType
pub const fn create(val: u32) -> ModuleType
Creates a new ModuleType from the provided parameter.
Sourcepub fn into_inner(self) -> u32
pub fn into_inner(self) -> u32
Converts into the inner representation of ModuleType.
Trait Implementations§
Source§impl Clone for ModuleType
impl Clone for ModuleType
Source§fn clone(&self) -> ModuleType
fn clone(&self) -> ModuleType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModuleType
impl Debug for ModuleType
Source§impl Default for ModuleType
impl Default for ModuleType
Source§fn default() -> ModuleType
fn default() -> ModuleType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModuleType
impl<'de> Deserialize<'de> for ModuleType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ModuleType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ModuleType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ModuleType
impl Display for ModuleType
Source§impl From<&ModuleType> for XfsMember
impl From<&ModuleType> for XfsMember
Source§fn from(val: &ModuleType) -> XfsMember
fn from(val: &ModuleType) -> XfsMember
Converts to this type from the input type.
Source§impl From<&ModuleType> for XfsValue
impl From<&ModuleType> for XfsValue
Source§fn from(val: &ModuleType) -> XfsValue
fn from(val: &ModuleType) -> XfsValue
Converts to this type from the input type.
Source§impl From<&i32> for ModuleType
impl From<&i32> for ModuleType
Source§fn from(val: &i32) -> ModuleType
fn from(val: &i32) -> ModuleType
Converts to this type from the input type.
Source§impl From<&u32> for ModuleType
impl From<&u32> for ModuleType
Source§fn from(val: &u32) -> ModuleType
fn from(val: &u32) -> ModuleType
Converts to this type from the input type.
Source§impl From<ModuleType> for XfsMember
impl From<ModuleType> for XfsMember
Source§fn from(val: ModuleType) -> XfsMember
fn from(val: ModuleType) -> XfsMember
Converts to this type from the input type.
Source§impl From<ModuleType> for XfsValue
impl From<ModuleType> for XfsValue
Source§fn from(val: ModuleType) -> XfsValue
fn from(val: ModuleType) -> XfsValue
Converts to this type from the input type.
Source§impl From<i32> for ModuleType
impl From<i32> for ModuleType
Source§fn from(val: i32) -> ModuleType
fn from(val: i32) -> ModuleType
Converts to this type from the input type.
Source§impl From<u32> for ModuleType
impl From<u32> for ModuleType
Source§fn from(val: u32) -> ModuleType
fn from(val: u32) -> ModuleType
Converts to this type from the input type.
Source§impl PartialEq for ModuleType
impl PartialEq for ModuleType
Source§impl Serialize for ModuleType
impl Serialize for ModuleType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<&XfsMember> for ModuleType
impl TryFrom<&XfsMember> for ModuleType
Source§impl TryFrom<&XfsValue> for ModuleType
impl TryFrom<&XfsValue> for ModuleType
Source§impl TryFrom<XfsMember> for ModuleType
impl TryFrom<XfsMember> for ModuleType
Source§impl TryFrom<XfsValue> for ModuleType
impl TryFrom<XfsValue> for ModuleType
impl Copy for ModuleType
impl Eq for ModuleType
impl StructuralPartialEq for ModuleType
Auto Trait Implementations§
impl Freeze for ModuleType
impl RefUnwindSafe for ModuleType
impl Send for ModuleType
impl Sync for ModuleType
impl Unpin for ModuleType
impl UnwindSafe for ModuleType
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