pub struct VersionPrinter<'a, W: ?Sized> { /* private fields */ }Expand description
Output for the program
Implementations§
Source§impl<'a, W: Write + ?Sized> VersionPrinter<'a, W>
impl<'a, W: Write + ?Sized> VersionPrinter<'a, W>
Sourcepub fn write_versions(
&mut self,
versions: &[Version],
yank: YankStatus,
verbose: bool,
) -> Result<()>
pub fn write_versions( &mut self, versions: &[Version], yank: YankStatus, verbose: bool, ) -> Result<()>
Write out all of the versions, filtered by the YankStatus
Sourcepub fn write_many_versions(
&mut self,
list: Vec<(&String, &String, bool)>,
) -> Result<()>
pub fn write_many_versions( &mut self, list: Vec<(&String, &String, bool)>, ) -> Result<()>
Writes many ‘name = version’ pairs with column alignment
pub fn write_latest_version( &mut self, version: &Version, verbose: bool, ) -> Result<()>
Auto Trait Implementations§
impl<'a, W> Freeze for VersionPrinter<'a, W>where
W: ?Sized,
impl<'a, W> RefUnwindSafe for VersionPrinter<'a, W>where
W: RefUnwindSafe + ?Sized,
impl<'a, W> Send for VersionPrinter<'a, W>
impl<'a, W> Sync for VersionPrinter<'a, W>
impl<'a, W> Unpin for VersionPrinter<'a, W>where
W: ?Sized,
impl<'a, W> !UnwindSafe for VersionPrinter<'a, W>
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