pub struct DefaultSource<'a> { /* private fields */ }Expand description
Default source, i.e. https://static.rust-lang.org/....
Implementations§
Source§impl<'a> DefaultSource<'a>
impl<'a> DefaultSource<'a>
Sourcepub const DEFAULT_BASE_URL: &'static str = "https://static.rust-lang.org/dist"
pub const DEFAULT_BASE_URL: &'static str = "https://static.rust-lang.org/dist"
Default base url.
Sourcepub fn override_base(&mut self, base_url: Cow<'a, str>)
pub fn override_base(&mut self, base_url: Cow<'a, str>)
Overrides the base URL.
Trait Implementations§
Source§impl<'a> SourceInfo for DefaultSource<'a>
impl<'a> SourceInfo for DefaultSource<'a>
Auto Trait Implementations§
impl<'a> Freeze for DefaultSource<'a>
impl<'a> RefUnwindSafe for DefaultSource<'a>
impl<'a> Send for DefaultSource<'a>
impl<'a> Sync for DefaultSource<'a>
impl<'a> Unpin for DefaultSource<'a>
impl<'a> UnwindSafe for DefaultSource<'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