pub enum LayoutSource {
Directory(PathBuf),
Github(GithubClient, String),
}Variants§
Directory(PathBuf)
Github(GithubClient, String)
Implementations§
Source§impl LayoutSource
impl LayoutSource
pub fn list_layouts(&self) -> Vec<String>
pub fn fetch_layout(&self, file: &str) -> Layout
Trait Implementations§
Source§impl Clone for LayoutSource
impl Clone for LayoutSource
Source§fn clone(&self) -> LayoutSource
fn clone(&self) -> LayoutSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for LayoutSource
impl !UnwindSafe for LayoutSource
impl Freeze for LayoutSource
impl Send for LayoutSource
impl Sync for LayoutSource
impl Unpin for LayoutSource
impl UnsafeUnpin for LayoutSource
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