pub struct SourcesCollection { /* private fields */ }Implementations§
Source§impl SourcesCollection
impl SourcesCollection
pub fn new(target: BuildTargetIdentifier, sources: Vec<Sources>) -> Self
Sourcepub fn target(&self) -> &BuildTargetIdentifier
pub fn target(&self) -> &BuildTargetIdentifier
Get a reference to the bsp sources collection’s target.
Sourcepub fn set_target(&mut self, target: BuildTargetIdentifier)
pub fn set_target(&mut self, target: BuildTargetIdentifier)
Set the bsp sources collection’s target.
Sourcepub fn set_sources(&mut self, sources: Vec<Sources>)
pub fn set_sources(&mut self, sources: Vec<Sources>)
Set the bsp sources collection’s sources.
Trait Implementations§
Source§impl Debug for SourcesCollection
impl Debug for SourcesCollection
Source§impl<'de> Deserialize<'de> for SourcesCollection
impl<'de> Deserialize<'de> for SourcesCollection
Source§fn 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
Auto Trait Implementations§
impl Freeze for SourcesCollection
impl RefUnwindSafe for SourcesCollection
impl Send for SourcesCollection
impl Sync for SourcesCollection
impl Unpin for SourcesCollection
impl UnwindSafe for SourcesCollection
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