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