[][src]Struct bv2av::BiliBv

pub struct BiliBv(pub String);

Implementations

impl BiliBv[src]

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

Get BV Id ( NO 'bv' INCLUDED! ) :

use bv2av::*;
assert_eq!(BiliBv::from("17x411w7KC").get(),
            "17x411w7KC");

pub fn dec(&self) -> BiliAv[src]

Decode Bv

use bv2av::*;

assert_eq!(BiliBv::from("1xx411c7XW").dec().get(), 314);

Trait Implementations

impl Clone for BiliBv[src]

impl Debug for BiliBv[src]

impl Display for BiliBv[src]

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

Will add 'bv'

impl<'_> From<&'_ str> for BiliBv[src]

Auto Trait Implementations

impl RefUnwindSafe for BiliBv

impl Send for BiliBv

impl Sync for BiliBv

impl Unpin for BiliBv

impl UnwindSafe for BiliBv

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.