Function rexiv2::register_xmp_namespace
source · [−]Expand description
Add a new XMP namespace for tags to exist under.
It is an error to register a duplicate namespace.
Examples
assert_eq!(rexiv2::register_xmp_namespace("http://creativecommons.org/ns#/", "cc"), Ok(()));
// But note you can't duplicate a namespace that has already been registered:
assert_eq!(rexiv2::register_xmp_namespace("http://creativecommons.org/ns#/", "cc"),
Err(rexiv2::Rexiv2Error::Internal(None)));