Enum GoPackageVisibility
pub enum GoPackageVisibility {
Internal,
Public,
}Expand description
Go package visibility metadata.
Variants§
Implementations§
§impl GoPackageVisibility
impl GoPackageVisibility
Trait Implementations§
§impl Clone for GoPackageVisibility
impl Clone for GoPackageVisibility
§fn clone(&self) -> GoPackageVisibility
fn clone(&self) -> GoPackageVisibility
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for GoPackageVisibility
impl Debug for GoPackageVisibility
§impl Display for GoPackageVisibility
impl Display for GoPackageVisibility
§impl FromStr for GoPackageVisibility
impl FromStr for GoPackageVisibility
§type Err = GoPackageError
type Err = GoPackageError
The associated error which can be returned from parsing.
§fn from_str(
value: &str,
) -> Result<GoPackageVisibility, <GoPackageVisibility as FromStr>::Err>
fn from_str( value: &str, ) -> Result<GoPackageVisibility, <GoPackageVisibility as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for GoPackageVisibility
impl Hash for GoPackageVisibility
§impl Ord for GoPackageVisibility
impl Ord for GoPackageVisibility
§fn cmp(&self, other: &GoPackageVisibility) -> Ordering
fn cmp(&self, other: &GoPackageVisibility) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for GoPackageVisibility
impl PartialEq for GoPackageVisibility
§impl PartialOrd for GoPackageVisibility
impl PartialOrd for GoPackageVisibility
impl Copy for GoPackageVisibility
impl Eq for GoPackageVisibility
impl StructuralPartialEq for GoPackageVisibility
Auto Trait Implementations§
impl Freeze for GoPackageVisibility
impl RefUnwindSafe for GoPackageVisibility
impl Send for GoPackageVisibility
impl Sync for GoPackageVisibility
impl Unpin for GoPackageVisibility
impl UnsafeUnpin for GoPackageVisibility
impl UnwindSafe for GoPackageVisibility
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more