pub struct SourceSets<'a>(/* private fields */);
Expand description
Represents a collection of source sets in a Kotlin Multiplatform project.
Implementations§
Trait Implementations§
Source§impl<'a> Debug for SourceSets<'a>
impl<'a> Debug for SourceSets<'a>
Source§impl<'de, 'a> Deserialize<'de> for SourceSets<'a>where
'de: 'a,
impl<'de, 'a> Deserialize<'de> for SourceSets<'a>where
'de: 'a,
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
Source§impl Display for SourceSets<'_>
impl Display for SourceSets<'_>
Source§fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the SourceSets
as a string.
§Example
use kmmp_structure::gradle::{
SourceSet,
sourcesets::SourceMethod,
SourceSets
};
let source_set = SourceSet::new("main", SourceMethod::Kotlin, &HashMap::new(), Dependencies::new(&Vec::new()));
let source_sets = SourceSets::new(&vec![source_set]);
assert_eq!(
source_sets.to_string(),
"sourcesets {\n val main by SourceMethod.Kotlin { }\n}\n"
);
Source§impl<'a> PartialEq for SourceSets<'a>
impl<'a> PartialEq for SourceSets<'a>
Source§impl<'a> Serialize for SourceSets<'a>
impl<'a> Serialize for SourceSets<'a>
impl<'a> StructuralPartialEq for SourceSets<'a>
Auto Trait Implementations§
impl<'a> Freeze for SourceSets<'a>
impl<'a> RefUnwindSafe for SourceSets<'a>
impl<'a> Send for SourceSets<'a>
impl<'a> Sync for SourceSets<'a>
impl<'a> Unpin for SourceSets<'a>
impl<'a> UnwindSafe for SourceSets<'a>
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