Struct proguard::ProguardMapping [−][src]
A Proguard Mapping file.
Implementations
impl<'s> ProguardMapping<'s>[src]
pub fn new(source: &'s [u8]) -> Self[src]
Create a new Proguard Mapping.
pub fn is_valid(&self) -> bool[src]
Whether the mapping file is indeed valid.
Examples
use proguard::ProguardMapping; let valid = ProguardMapping::new(b"a -> b:\n void method() -> b"); assert_eq!(valid.is_valid(), true); let invalid = ProguardMapping::new( br#" a -> proguard: mapping but(is) -> not "#, ); assert_eq!(invalid.is_valid(), false);
pub fn summary(&self) -> MappingSummary<'_>[src]
Returns a summary of the file.
pub fn has_line_info(&self) -> bool[src]
Whether the mapping file contains line info.
Examples
use proguard::ProguardMapping; let with = ProguardMapping::new(b"a -> b:\n 1:1:void method() -> a"); assert_eq!(with.has_line_info(), true); let without = ProguardMapping::new(b"a -> b:\n void method() -> b"); assert_eq!(without.has_line_info(), false);
pub fn iter(&self) -> ProguardRecordIter<'s>ⓘNotable traits for ProguardRecordIter<'s>
impl<'s> Iterator for ProguardRecordIter<'s> type Item = Result<ProguardRecord<'s>, ParseError<'s>>;[src]
Notable traits for ProguardRecordIter<'s>
impl<'s> Iterator for ProguardRecordIter<'s> type Item = Result<ProguardRecord<'s>, ParseError<'s>>;Create an Iterator over ProguardRecords.
Trait Implementations
impl<'s> Clone for ProguardMapping<'s>[src]
fn clone(&self) -> ProguardMapping<'s>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<'s> Debug for ProguardMapping<'s>[src]
impl<'s> Default for ProguardMapping<'s>[src]
fn default() -> ProguardMapping<'s>[src]
Auto Trait Implementations
impl<'s> RefUnwindSafe for ProguardMapping<'s>
impl<'s> Send for ProguardMapping<'s>
impl<'s> Sync for ProguardMapping<'s>
impl<'s> Unpin for ProguardMapping<'s>
impl<'s> UnwindSafe for ProguardMapping<'s>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,