pub fn with_location(
        description: impl Into<String>,
        file_location: FileLocation,
    ) -> Self {
        let (line_number, line) = file_location;
        Self {
            description: description.into(),
            source: Some(Source::FileLocation(line_number, line.to_string())),
        }
    }
/// Create a new `ParseError` instance with a `FileLocation` as a cause.
///
/// # Arguments
///
/// * `description`: What's wrong at the moment of creation.
/// * `file_location`: A reference to a line number and line that caused the error.
///
/// # Return value
///
/// A new `ParseError` instance with a `FileLocation` cause.
Create a new `ParseError` instance with a `FileLocation` as a cause.
Create a new ` ParseError ` instance with a ` FileLocation ` as a cause .
pub fn with_location(
        description: impl Into<String>,
        file_location: FileLocation,
    ) -> Self {
        let (line_number, line) = file_location;
        Self {
            description: description.into(),
            source: Some(Source::FileLocation(line_number, line.to_string())),
        }
    }
pub fn with_location ( description : impl Into < String > , file_location : FileLocation , ) -> Self { let ( line_number , line ) = file_location ; Self { description : description . into ( ) , source : Some ( Source :: FileLocation ( line_number , line . to_string ( ) ) ) , } }
Create a new `ParseError` instance with a `FileLocation` as a cause.
Create a new ` ParseError ` instance with a ` FileLocation ` as a cause .
description
impl Into<String>
file_location
FileLocation
description
impl Into<String>
file_location
FileLocation
return value
A new `ParseError` instance with a `FileLocation` cause.
A new ` ParseError ` instance with a ` FileLocation ` cause .