pub struct Resources { /* private fields */ }Implementations
sourceimpl Resources
impl Resources
pub fn new(target: BuildTargetIdentifier, resources: Vec<String>) -> Self
sourcepub fn set_target(&mut self, target: BuildTargetIdentifier)
pub fn set_target(&mut self, target: BuildTargetIdentifier)
Set the bsp resources item’s target.
sourcepub fn target(&self) -> &BuildTargetIdentifier
pub fn target(&self) -> &BuildTargetIdentifier
Get a reference to the bsp resources item’s target.
sourcepub fn set_resources(&mut self, resources: Vec<String>)
pub fn set_resources(&mut self, resources: Vec<String>)
Set the bsp resources item’s resources.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Resources
impl<'de> Deserialize<'de> for Resources
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Resources
impl StructuralEq for Resources
impl StructuralPartialEq for Resources
Auto Trait Implementations
impl RefUnwindSafe for Resources
impl Send for Resources
impl Sync for Resources
impl Unpin for Resources
impl UnwindSafe for Resources
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more