[][src]Struct czkawka_core::common::Common

pub struct Common();

Class for common functions used across other class/functions

Implementations

impl Common[src]

pub fn print_time(
    start_time: SystemTime,
    end_time: SystemTime,
    function_name: String
)
[src]

Printing time which took between start and stop point and prints also function name

pub fn delete_multiple_entries(entries: &[String]) -> Vec<String>[src]

pub fn delete_one_entry(entry: &str) -> String[src]

pub fn regex_check(expression: &str, directory: impl AsRef<Path>) -> bool[src]

Function to check if directory match expression

pub fn normalize_windows_path(path_to_change: impl AsRef<Path>) -> PathBuf[src]

Auto Trait Implementations

impl RefUnwindSafe for Common

impl Send for Common

impl Sync for Common

impl Unpin for Common

impl UnwindSafe for Common

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.