pub fn and(&self, other_license: Self) -> Self {
    let combined_expr = Self::combine_license_expr(self, &other_license, "AND");
    if self.license >= other_license.license {
      Self {
        name: self.name.clone(),
        expression: combined_expr,
        license: self.license.clone(),
      }
    } else {
      Self {
        name: other_license.name,
        expression: combined_expr,
        license: other_license.license,
      }
    }
  }
/// Takes a BazelSpdxLicense as an argument, and returns a new BazelSpdxLicense based on the more
/// restrictive license. If both licenses are equally restrictive, self's license is used. The
/// new BazelSpdxLicense's expression will represent the "AND" of the two expressions.
Takes a BazelSpdxLicense as an argument, and returns a new BazelSpdxLicense based on the more
restrictive license. If both licenses are equally restrictive, self's license is used. The
new BazelSpdxLicense's expression will represent the "AND" of the two expressions.
Takes a BazelSpdxLicense as an argument and returns a new BazelSpdxLicense based on the more restrictive license . If both licenses are equally restrictive self ' s license is used . The new BazelSpdxLicense ' s expression will represent the " AND " of the two expressions .
pub fn and(&self, other_license: Self) -> Self {
    let combined_expr = Self::combine_license_expr(self, &other_license, "AND");
    if self.license >= other_license.license {
      Self {
        name: self.name.clone(),
        expression: combined_expr,
        license: self.license.clone(),
      }
    } else {
      Self {
        name: other_license.name,
        expression: combined_expr,
        license: other_license.license,
      }
    }
  }
pub fn and ( & self , other_license : Self ) -> Self { let combined_expr = Self :: combine_license_expr ( self , & other_license , " " ) ; if self . license >= other_license . license { Self { name : self . name . clone ( ) , expression : combined_expr , license : self . license . clone ( ) , } } else { Self { name : other_license . name , expression : combined_expr , license : other_license . license , } } }
Takes a BazelSpdxLicense as an argument, and returns a new BazelSpdxLicense based on the more
restrictive license.
Takes a BazelSpdxLicense as an argument and returns a new BazelSpdxLicense based on the more restrictive license .
&self
other_license
Self
&self
other_license
Self