pub struct Silicon { /* private fields */ }Expand description
A basic resource.
This struct represents the basic resource $basic.
Implementations§
Source§impl Silicon
impl Silicon
Sourcepub fn to_type(&self) -> ResourceType
pub fn to_type(&self) -> ResourceType
Converts this resource to a ResourceType.
Sourcepub fn to_generic(self) -> GenericResource
pub fn to_generic(self) -> GenericResource
Converts this resource to a GenericResource.
Sourcepub fn to_basic(self) -> BasicResource
pub fn to_basic(self) -> BasicResource
Converts this resource to a BasicResource.
Sourcepub fn to_basic_type(&self) -> BasicResourceType
pub fn to_basic_type(&self) -> BasicResourceType
Returns the BasicResourceType of this resource.
Trait Implementations§
Source§impl Resource for Silicon
impl Resource for Silicon
Source§fn to_static_str(&self) -> &'static str
fn to_static_str(&self) -> &'static str
Returns a static string representation of the resource.
impl Eq for Silicon
impl StructuralPartialEq for Silicon
Auto Trait Implementations§
impl Freeze for Silicon
impl RefUnwindSafe for Silicon
impl Send for Silicon
impl Sync for Silicon
impl Unpin for Silicon
impl UnwindSafe for Silicon
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