pub enum SplitStrategy {
BySourceFile,
ByFunction,
Monolithic,
Auto,
}Expand description
How to split a single pre-linked input into logical modules.
Variants§
BySourceFile
Group functions by their source_files metadata.
ByFunction
Each function becomes its own module.
Monolithic
Keep as a single monolithic module (today’s behavior).
Auto
BySourceFile if source metadata present, else ByFunction.
Trait Implementations§
Source§impl Clone for SplitStrategy
impl Clone for SplitStrategy
Source§fn clone(&self) -> SplitStrategy
fn clone(&self) -> SplitStrategy
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 SplitStrategy
impl Debug for SplitStrategy
Source§impl Default for SplitStrategy
impl Default for SplitStrategy
Source§fn default() -> SplitStrategy
fn default() -> SplitStrategy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SplitStrategy
impl<'de> Deserialize<'de> for SplitStrategy
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 PartialEq for SplitStrategy
impl PartialEq for SplitStrategy
Source§impl Serialize for SplitStrategy
impl Serialize for SplitStrategy
impl Copy for SplitStrategy
impl Eq for SplitStrategy
impl StructuralPartialEq for SplitStrategy
Auto Trait Implementations§
impl Freeze for SplitStrategy
impl RefUnwindSafe for SplitStrategy
impl Send for SplitStrategy
impl Sync for SplitStrategy
impl Unpin for SplitStrategy
impl UnsafeUnpin for SplitStrategy
impl UnwindSafe for SplitStrategy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.