[][src]Struct bv2av::BiliAv

pub struct BiliAv(pub u64);

Implementations

impl BiliAv[src]

pub fn get(&self) -> u64[src]

Get AV Number:

use bv2av::BiliAv;

assert_eq!(BiliAv(170001).get()
    , 170001);

pub fn enc(&self) -> BiliBv[src]

Encode Bv

use bv2av::{BiliAv,BiliBv};

assert_eq!(BiliAv(170001).enc().get(), "17x411w7KC");

Trait Implementations

impl Clone for BiliAv[src]

impl Copy for BiliAv[src]

impl Debug for BiliAv[src]

impl Display for BiliAv[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Will add 'av'

impl From<u64> for BiliAv[src]

Auto Trait Implementations

impl RefUnwindSafe for BiliAv

impl Send for BiliAv

impl Sync for BiliAv

impl Unpin for BiliAv

impl UnwindSafe for BiliAv

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.