Skip to content

Commit

Permalink
Making Implicit and Explicit value's public (librasn#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthok authored and Piotr Zaczkowski committed Aug 13, 2021
1 parent 3cb255f commit ec1074a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types/prefix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ use crate::{AsnType, Tag};
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct Explicit<T, V> {
_tag: core::marker::PhantomData<T>,
pub(crate) value: V,
pub value: V,
}

/// A newtype wrapper that will implicitly tag its value with `T`'s tag.
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct Implicit<T, V> {
_tag: core::marker::PhantomData<T>,
pub(crate) value: V,
pub value: V,
}

macro_rules! tag_kind {
Expand Down

0 comments on commit ec1074a

Please sign in to comment.