pub fn new(value: &str) -> Result<Self, &'static str> {
        if value.is_empty() {
            Err("Item number cannot blank")
        } else {
            Ok(ItemNumber(value.to_owned()))
        }
    }
/// Creates a new ItemNumber from the string slice, it needs to panic when the
/// provided string slice is empty.
Creates a new ItemNumber from the string slice, it needs to panic when the
provided string slice is empty.
Creates a new ItemNumber from the string slice it needs to panic when the provided string slice is empty .
pub fn new(value: &str) -> Result<Self, &'static str> {
        if value.is_empty() {
            Err("Item number cannot blank")
        } else {
            Ok(ItemNumber(value.to_owned()))
        }
    }
pub fn new ( value : & str ) -> Result < Self , & ' static str > { if value . is_empty ( ) { Err ( " " ) } else { Ok ( ItemNumber ( value . to_owned ( ) ) ) } }
Creates a new ItemNumber from the string slice, it needs to panic when the
provided string slice is empty.
Creates a new ItemNumber from the string slice it needs to panic when the provided string slice is empty .
value
&str